To start the server, run
$ npm start
As first-time setup, you'll need to add a credentials.json
file with the following contents:
{
"db": "db-user-password"
}
Requests are matched against all the routes in the routes
folder. When the route matches, it will execute the handler. Requests to /css
, /js
, or /images
are served from /static
.
To deploy a change,
$ ssh [email protected] './deploy.sh'
You will be presented with the output of app.js
until you CTRL-C
. The app will still be running when you do this. If a fatal crash occurs, the app will be automatically restarted with forever
.