Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
flyers
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chris
flyers
Commits
60a080fa
Commit
60a080fa
authored
Mar 04, 2014
by
Christophe Siraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Multi user deployment facilities.
parent
fb54fd58
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
25 deletions
+4
-25
fabfile.py
fabfile.py
+4
-5
general/fixtures/auth.json
general/fixtures/auth.json
+0
-20
No files found.
fabfile.py
View file @
60a080fa
...
@@ -3,23 +3,22 @@
...
@@ -3,23 +3,22 @@
Create/update virtualenv
Create/update virtualenv
django syncdb collectstatic'''
django syncdb collectstatic'''
# Usage: fab prod:account=lacompagnieki deploy
import
os
import
os
from
fabric.api
import
env
,
local
,
run
,
settings
,
cd
,
lcd
,
sudo
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'
name
=
'flyers'
repository
=
'http://git.domainepublic.net/git/
%
s.git'
%
name
repository
=
'http://git.domainepublic.net/git/
%
s.git'
%
name
directory
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
name
))
directory
=
os
.
path
.
abspath
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
name
))
def
prod
():
def
prod
(
account
=
'chris'
):
env
.
user
=
'chris'
env
.
user
=
'chris'
env
.
hosts
=
[
'domainepublic.net'
]
env
.
hosts
=
[
'domainepublic.net'
]
env
.
port
=
3265
env
.
port
=
3265
global
directory
global
directory
directory
=
'/var/alternc/html/
c/chris/test'
directory
=
'/var/alternc/html/
%
s/
%
s/flyers'
%
(
account
[
0
],
account
)
def
deploy_remote
():
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
Markdown
is supported
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