Skip to content

Commit

Permalink
updated requirements and start server script
Browse files Browse the repository at this point in the history
  • Loading branch information
F483 committed Dec 27, 2015
1 parent cad5b34 commit 8bdd033
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ addons:
packages:
- libpq-dev

env:
- PYCOIN_NATIVE=openssl

install:
- pip install -r requirements.txt
- pip install -r test_requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Flask >= 0.10.1
Flask-SQLAlchemy >= 2.0
RandomIO >= 0.2.1
partialhash >= 1.1.0
btctxstore >= 4.6.0
btctxstore >= 4.6.1
Flask-Cache >= 0.13.1
Flask-Migrate >= 1.5.1
gunicorn >= 19.3.0
Expand Down
19 changes: 19 additions & 0 deletions start_production_server.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# set correct dir
cd "$(dirname "$0")"

# TODO create env if needed
# TODO pull latest
# TODO migrate if needed

# load virtualenv
source env/bin/activate

# configure
export DATASERV_DATABASE_URI="postgresql:///dataserv"
export PYCOIN_NATIVE=openssl

# start server
cd dataserv
authbind gunicorn -w 4 -b 0.0.0.0:80 app:app --log-file=gunicorn.log

0 comments on commit 8bdd033

Please sign in to comment.