Commit 60a080fa authored by Christophe Siraut's avatar Christophe Siraut

Multi user deployment facilities.

parent fb54fd58
......@@ -3,23 +3,22 @@
Create/update virtualenv
django syncdb collectstatic'''
# Usage: fab prod:account=lacompagnieki deploy
import os
from fabric.api import env, local, run, settings, cd, lcd, sudo
import sys
if sys.version_info[:2] == (2, 6):
from contextlib import nested
name = 'flyers'
repository = 'http://git.domainepublic.net/git/%s.git' % name
directory = os.path.abspath(os.path.join(os.path.dirname(__file__), name))
def prod():
def prod(account='chris'):
env.user = 'chris'
env.hosts = ['domainepublic.net']
env.port = 3265
global directory
directory = '/var/alternc/html/c/chris/test'
directory = '/var/alternc/html/%s/%s/flyers' % (account[0], account)
def deploy_remote():
......
[
{
"pk": 1,
"model": "auth.user",
"fields": {
"username": "admin",
"first_name": "",
"last_name": "",
"is_active": true,
"is_superuser": true,
"is_staff": true,
"last_login": "2013-12-02T12:15:10.024Z",
"groups": [],
"user_permissions": [],
"password": "pbkdf2_sha256$12000$qFAnrOCVTYA0$s+i3ix4KORuLNa/F23KJ136UOfT8wrTRK+YK0WjGt1g=",
"email": "my@eamailaddress.org",
"date_joined": "2013-12-02T12:14:50.508Z"
}
}
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment