Commit 8065d42f authored by eric's avatar eric

Command to create a static version of the website `fab archive`

Creates folder `public`. Would be good to git it in its own repo,
for now `public/` is in the .gitignore.
parent 6b06d419
......@@ -6,6 +6,8 @@
# project specific #
# generated archive (good to git it, but i would git it in its own repo)
public/
run.sh
local_settings.py
sqlite.db
......
......@@ -15,3 +15,8 @@ def deploy():
def index():
with cd(env.path):
run('/home/osp/apps/venvs/vj14/bin/python manage.py index')
def archive():
local('mkdir -p public')
local('wget -rk -nH -P ./public http://vj14.stdin.fr/')
\ No newline at end of file
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