pyvideo / richard-ansible

Ansible playbook for deploying richard
GNU Affero General Public License v3.0
1 stars 4 forks source link

deploying environment variables to uwsgi #2

Closed codersquid closed 9 years ago

codersquid commented 9 years ago

Based on the uwsgi log, it isn't finding the appropriate settings file. The deployment probably has a problem with passing the correct environment variables along to uwsgi.

ImportError: Could not import settings 'richard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named settings
codersquid commented 9 years ago

Based on this stackoverflow comment the convention is to do the following.

[uwsgi]
for-readline = yourfile
  env = %(_)
endfor = 

Whereas I mistakenly had ansible passing a dictionary to the ini file to set env to.

codersquid commented 9 years ago

I decided the extra file YAGNI. If it becomes something we need we can refactor this.