Skip to content

Commit

Permalink
Merge branch 'master' into db-script-cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
iamigo committed Nov 16, 2016
2 parents 085d071 + 0153927 commit 63d7d25
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/docs/04-quickstartlocal.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ title: Quick Start Local
1. Install lunchy (`brew install Caskroom/cask/lunchy`). This will help you start redis.
1. Run `lunchy start redis` to start redis.
1. Run `npm start` to start your Node.js server at http://localhost:3000.
1. If you want to unload some of the processing to a background process run `npm run start-clock`. If you intend to deploy this on heroku and have heroku toolbelt installed run `heroku local` to start both the web and the background process.
1. If you want to run the sample timeout check in a separate background process:
1. Start the server with environment variable (i.e. config setting) `HEROKU_CLOCK_DYNO` set to `true`.
1. Run `npm run start-clock` to start the clock process.
1. If you want to offload expensive work from your web process to separate worker process:
1. Start the server with environment variable (i.e. config setting) `USE_WORKER_PROCESS ` set to `true`.
1. Run `npm run start-worker` to start the worker process.
1. If you intend to deploy this on heroku and have heroku toolbelt installed, run `heroku local` to start the web, clock and worker processes all together. Make sure that the `HEROKU_CLOCK_DYNO` and `USE_WORKER_PROCESS` environment variables are set to true. Note that the node server will be listening on port 5000 when you start it using the `heroku local` command.

### Updates
Whenever you pull down a new version of Refocus from the git repository:
Expand Down

0 comments on commit 63d7d25

Please sign in to comment.