Skip to content

Website for Graffathon, a beginner's computer graphics / demoscene hackathon

Notifications You must be signed in to change notification settings

anttihirvonen/graffathon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Website for Graffathon (http://graffathon.fi), a computer graphics hatckathon organized by DOT (http://dot.ayy.fi/)

Running in production

Production configuration is kept in GIT (settings/prod.py). However, the actual setting values are read from environment variables.

git clone https://github.com/anttihirvonen/graffathon.git
cd graffathon
mkvirtualenv pyenv
source pyenv/bin/activate
pip install -r config/prod.txt
mkdir env

Put all required setting values into env/ as separate files.

All that is left to do is initialize database, collect static files and run the app using Gunicorn (currently using port 36757 on Kapsi, but any port will do).

envdir env python manage.py initialize_database
envdir env python manage.py collect
envdir env/ gunicorn -b 0.0.0.0:36757 app:app

Finally, configure reverse proxy so that all other requests except static files are redirected to the running Gunicorn instance.

Updating

Pull from GIT, run collect and restart Gunicorn. Simple!

About

Website for Graffathon, a beginner's computer graphics / demoscene hackathon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •