diff --git a/docs/setup-dev-environment.md b/docs/setup-dev-environment.md index 4337ec4b..5fd50a43 100644 --- a/docs/setup-dev-environment.md +++ b/docs/setup-dev-environment.md @@ -333,7 +333,7 @@ Create a building record per outline. ## Running the application -Now we are ready to run the application. The `APP_COOKIE_SECRET` is arbitrary. +Now we are ready to run the application. First enter the app directory. @@ -347,12 +347,32 @@ Then create a folder for the tilecache. mkdir tilecache ``` -Finally, run the application. +Create some additional variables for running the application (the `APP_COOKIE_SECRET` is arbitrary). + +```bash +export PGHOST=localhost +export PGPORT=5432 +export APP_COOKIE_SECRET=123456 +export TILECACHE_PATH=~/colouring-london/app/tilecache +``` + +Finally, simply run the application with npm. + +```bash +npm start +``` + +
+ +... or specify the variables for the application like so: + ```bash PGPASSWORD= PGDATABASE= PGUSER= PGHOST=localhost PGPORT=5432 APP_COOKIE_SECRET=123456 TILECACHE_PATH=~/colouring-london/app/tilecache npm start ``` +

+ The site can then be viewed on http://localhost:8080. The `app_dev` mapping is used in development by Razzle which rebuilds and serves client side assets on the fly.