2 Aug, ‘14
Sheila and I setup deployed the website on the backspace VM finally today.
It can be accessed here. The JS and CSS files are not getting loaded, that’s an issue I will deal with tomorrow. Here’s some bugs and errors we encountered while deploying the website:
- Secret key was missing. Sheila suggested I save it off the VM and add it to gitignore. I did that, but the commit didn’t deploy on VM. Error code 128. So I saved the key on an environment variable in the box itself, which worked.
- Next up, the URL gave a 500. Logs told us: ImproperlyConfigured: Secret-key. This meant that the environment variable isn’t loading before a=out app runs. So we added it to the deployment/runserver.sh.j2 Jinja file.
- Another 500. It wanted a default Cache which we hadn’t configured. We decided to use locmemcache for now with the website.
- A 400 this time. Skay figured that we needed to set ALLOWED_HOSTS. She setup the domain name and I put it in the repo. And voila! It works!