DONT'T forget to set secret key env variable bargh...
for deployment on nginx, we can d x-accel-redirect
$ gunicorn xaccel:xapp
see more in deploy-configs
remember to leave off the trailing slash for app.config[UPLOAD_DIR]
tricky dependencies:
- python imaging (preferably pillow)
- libjpeg
-
initialize the database
-
set up an admin user (mkphil)
-
reset admin password
-
init the contributor key
-
import content from backup
-
set up contact form email destinations
-
set up the server with the config in
deploy-configs
-
enable the app to start up on boot
sudo update-rc.d windermere defaults
-
export all necessary further configs (see
website/__init__.py
) -
install postfix
- switch user to windermere
- always
source ~/.config.sh
flask-migrate doesn't handle package apps correctly, so you must use an
absolute path the the db for the SQLITE_DATABASE_URL
environment config.
but then it's easy
./manage.py db upgrade