Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chris
flyers
Commits
60a080fa
Commit
60a080fa
authored
Mar 04, 2014
by
Christophe Siraut
Browse files
Multi user deployment facilities.
parent
fb54fd58
Changes
2
Hide whitespace changes
Inline
Side-by-side
fabfile.py
View file @
60a080fa
...
...
@@ -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
():
...
...
general/fixtures/auth.json
deleted
100644 → 0
View file @
fb54fd58
[
{
"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"
}
}
]
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment