Skip to content

Standard website starter kit. Uses NodeJS & Express as an API server, angularJS for front end, SASS preprocessor

Notifications You must be signed in to change notification settings

wlingke/standard-website

Repository files navigation

Building to Production

SASS files are compiled from /sass to /static/stylesheets All production files should have matching folders in /production (ie /production/static, /production/views, /production/stylesheets, etc.)

Start Script

The start script allows you to start any file using same the environment setup for the server. This low-level command is hidden by Grunt when starting up servers. The startup script provides for:

  • Allows require commands relative to the current working directory
  • Utilizes Forever Monitor to handle restarting the script if it crashes

Note that Nodemon support is not provided for this low level runner. The script will not restart on file changes and must be rerun.

####Usage Syntax node start path_to_file --flags

####Available Flags:

#####Node Environment: --env= Sets process.env.NODE_ENV. Default: development
Other valid options: production

#####Custom forever-monitor restarts: --restarts= Sets number of times forever-monitor will attempt restart the script if the script should crash due to an unhandled error.
Defaults to: 0 for development and 2 for production.

Developer Notes

We use forever-monitor 1.2.x only because in 1.3.0, you are unable to kill child process with control-c. foreversd/forever-monitor#80

#####Examples:

About

Standard website starter kit. Uses NodeJS & Express as an API server, angularJS for front end, SASS preprocessor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published