User:Wenzel/Bouncer:Tuxedo Deployment: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with '== Deployment hints for Bouncer's Tuxedo Branch == [http://github.com/fwenzel/tuxedo/ Source code]: * <code>git clone git://github.com/fwenzel/tuxedo.git</code> * Make a virtua…')
 
No edit summary
Line 1: Line 1:
== Deployment hints for Bouncer's Tuxedo Branch ==
== Deployment hints for Bouncer's Tuxedo Branch ==


[http://github.com/fwenzel/tuxedo/ Source code]:
* Check out the [http://github.com/fwenzel/tuxedo/ source code]: <code>git clone git://github.com/fwenzel/tuxedo.git</code>
* <code>git clone git://github.com/fwenzel/tuxedo.git</code>


* Make a virtualenv (probably with <code>--no-site-packages</code>), then <code>easy_install pip</code>.
* Deploying Tuxedo is very similar to the [http://jbalogh.github.com/zamboni/topics/production/ Zamboni docs].
* Make a virtualenv, then <code>easy_install pip</code>.
* <code>pip install -r requirements.txt</code>
* <code>pip install -r requirements.txt</code>
** <code>MySQL-python</code> can be installed via pip, or globally by installing the rpm.


* Create a file <code>local_settings.py</code> in the tuxedo dir and put the settings into it that you want to change from settings.py, here's mine:
* Create a file <code>local_settings.py</code> in the tuxedo dir and put the settings into it that you want to change from settings.py, here's mine:
<pre>
<pre>
$ cat local_settings.py
$ cat local_settings.py
DEBUG = False
DATABASE_ENGINE = 'mysql'          # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_ENGINE = 'mysql'          # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = 'mybouncerdb'      # Or path to database file if using sqlite3.
DATABASE_NAME = 'mybouncerdb'      # Or path to database file if using sqlite3.
Line 24: Line 28:
</pre>
</pre>


* When upgrading from an older version of Bouncer, follow the steps "Upgrading an older version of Bouncer" in the [http://github.com/fwenzel/tuxedo/blob/master/README.md README].
* When upgrading from an older version of Bouncer, start off with a copy of the old DB, then follow the steps "Upgrading an older version of Bouncer" in the [http://github.com/fwenzel/tuxedo/blob/master/README.md README].
*
 
* (with DEBUG=True in your settings file, you should now be able to run <code>./manage.py runserver</code> and see a working web app. You should be able to log in.)
 
* Deploy to a web server. The Zamboni docs have some [http://jbalogh.github.com/zamboni/topics/production/#setting-up-mod-wsgi hints about Apache+mod_wsgi].
* At the time of writing, these hints don't cover the <code>/media/</code> and <code>/admin-media/</code> dirs. Those are not to be served through mod_wsgi, but can be added to the same vhost with mod_alias. See the section about it in [http://docs.djangoproject.com/en/dev/howto/deployment/modwsgi/#serving-media-files Django docs].
** map <code>/media/</code> to the <code>tuxedo/media</code> dir, and
** <code>/admin-media/</code> to <code>.../the-tuxedo-virtualenv/lib/python2.6/site-packages/django/contrib/admin/media/</code>
Confirmed users
1,209

edits

Navigation menu