forked from HackAssistant/registration
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathserver.sh.template
More file actions
25 lines (20 loc) · 907 Bytes
/
server.sh.template
File metadata and controls
25 lines (20 loc) · 907 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
export PROD_MODE="True"
# You can create it by running os.urandom(24) in Python
export SECRET="SECRET"
# Set up your postgres password
export POSTGRES_PASSWORD="password"
# If using Sendgrid set api key here
export SG_KEY="API_KEY"
# Optional: Slack token and team
export SL_TOKEN="TOKEN"
export SL_TEAM="test-team"
# Domain where running
export DOMAIN="my.hackupc.com"
# These credentials need to be set up if you have enabled GOOGLE_WALLET_ENABLED inside app/settings.py
# Read the README to know how to get them
export GOOGLE_WALLET_ISSUER_ID="XXXXXXXXXXXXXXXXXXX"
export GOOGLE_WALLET_CLASS_SUFFIX="XXXXXXXXXXXXXXXXX"
export GOOGLE_WALLET_PASS_SUFFIX="" # use ="test" for testing
export GOOGLE_WALLET_APPLICATION_CREDENTIALS="/path/to/credentials.json" # remember to allow read perms
./env/bin/gunicorn --workers 3 --log-file=gunicorn.log --bind unix:backend.sock app.wsgi:application