- Timestamp:
- Feb 18, 2019, 9:37:43 PM (5 years ago)
- Branches:
- current, feature/docs, master
- Children:
- 75383e6
- Parents:
- 591ae81
- Location:
- bin
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bin/start
r591ae81 r2142a49 9 9 env_path=${current}/env 10 10 11 # trap control+c, which is what we use to stop pserve, ensuring ZEO is shut down 12 trap ctrl_c INT 13 14 ctrl_c() { 15 ./bin/zeo_stop 16 } 17 11 18 # Activate the virtual env 19 echo "Activating virtual environment" 12 20 . ${env_path}/bin/activate 13 21 14 22 # Now ensure all python and js packages are up-to-date 23 echo "Installing dependency updates (this may take a moment)" 15 24 yes | pip install --upgrade -e ${current}[testing] > /tmp/ow-start.stdout 2> /tmp/ow-start.stderr 16 25 ./bin/js_deps > /tmp/ow-start.stdout 2> /tmp/ow-start.stderr 17 26 27 # Start ZEO (stop if it is running) 28 echo "Starting database" 29 ./bin/zeo_stop >> var/log/zeo_stop.log 2>> var/log/zeo_stop.err & 30 ./bin/zeo_start >> var/log/zeo_start.log 2>> var/log/zeo_start.err & 31 18 32 # And finally run the server 19 pserve --reload development.ini 33 echo "Starting OpenWorkouts" 34 pserve --reload development.ini >> var/log/pserve.log 2>> var/log/pserve.err & 35 echo $! > var/run/pserve.pid 36 37 # show the url where the app is accesible 38 ow_url=http://`grep listen development.ini |cut -f 3 -d " "` 39 echo "Open this url in your browser to access the app: ${ow_url}" 40 # open ${ow_url}
Note: See TracChangeset
for help on using the changeset viewer.