Skip to content

Commit

Permalink
update fbone.wsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
imwilsonxu committed Nov 20, 2012
1 parent 9493b81 commit c79cd1b
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions fbone.wsgi
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,32 @@ if BASE_DIR not in sys.path:

from fbone import create_app
application = create_app()

"""
Deploy Note (Ubuntu):
# Server
sudo mkdir -p /var/www/fbone
sudo chmod -R o+w /var/www/fbone
scp /path/to/this/file /var/www/fbone.wsgi
sudo chmod o+w /var/www/fbone.wsgi
sudo echo "<VirtualHost *:80>
WSGIDaemonProcess fbone user=wilson group=wilson threads=5
WSGIScriptAlias / /var/www/fbone.wsgi
<Directory /var/www/fbone>
#WSGIScriptReloading On
WSGIProcessGroup fbone
WSGIApplicationGroup %{GLOBAL}
Order deny,allow
Allow from all
</Directory>
</VirtualHost>" > /etc/apache2/sites-enabled/fbone
sudo a2ensite fbone.vhost
sudo service apache restart
# Client
fab deploy
"""

0 comments on commit c79cd1b

Please sign in to comment.