Skip to content

Notes On Deployment

Nicholas Yang edited this page Jun 7, 2016 · 4 revisions

Notes on Deployment

I used these two guides for my deployment scripts (Installer):

However, you only really need guide 1. Guide 2 helps with debugging, but it’s not really necessary. However, guide 1 is very flawed. Here’s few issues I ran into:

  • Database isn’t recognized
    • Solution: Use absolute path for database, not relative (i.e. ~/myapp/mydb.db not mydb.db)
  • Flask isn’t installed
    • Solution: Add the following lines to the wsgi file before the import:
      activate_this = '/path/to/FlaskApp/venv/bin/activate_this.py'
      execfile(activate_this, dict(__file__=activate_this)) ```
              
  • Weird import error in wsgi file
    • Solution: Remove any dashes from filenames
  • var isn’t allowed to be edited
    • Solution: Either recursively change the group of var or just use root

Clone this wiki locally