Skip to content

Commit

Permalink
Update prod files + README.md + shity compass option
Browse files Browse the repository at this point in the history
  • Loading branch information
Nodraak committed Oct 26, 2014
1 parent 4692b73 commit cf1c911
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 23 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,20 @@ export CFLAGS=-Qunused-arguments
pip install pillow
```

or ubuntu :
```shell
export CFLAGS=""
export CPPFLAGS=""
pip install pillow
```

* *Ruby*, *compass* (compile the sass/scss to css) and *zurb-foundation* (css responsive framework) :
```shell
apt-get install ruby
gem install --user-install compass zurb-foundation
# or maybe : apt-get install ruby1.9.1 ruby-compass
# and maybe : gem install zurb-foundation
# or surely : sudo gem uninstall sass && sudo gem install sass --version 3.4.5
```
If you have a warning about ruby not in your PATH, run :
```shell
Expand Down
2 changes: 1 addition & 1 deletion assets/config.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
require 'zurb-foundation'
require 'compass/import-once/activate'
#require 'compass/import-once/activate'
# Require any additional compass plugins here.


Expand Down
3 changes: 2 additions & 1 deletion cdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ to do now
- https://docs.djangoproject.com/en/dev/ref/contrib/sitemaps/
- robots.txt + htaccess (index follow)
- a propos / l'iteam + cookies
- publication slug -> user-friendly url

- previsualisation des posts
- news / tuto / articles : export pdf (pandoc)
Expand All @@ -29,7 +30,7 @@ osef ?

to do later
- ancien iteam.org a lire / parser
- compte Flickr
- compte Flickr
- nas de Marine Mathieu (là en 2007)
- forum.iteam.org

Expand Down
16 changes: 15 additions & 1 deletion prod/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,24 @@ A lire :
* graph pr une eventuelle forma http://sametmax.com/quest-ce-que-wsgi-et-a-quoi-ca-sert/
* munin http://sametmax.com/monitorez-vos-serveurs-avec-munin-et-notifications-par-email/
* django cache https://docs.djangoproject.com/en/dev/topics/cache/
* nginx + static + gzip : http://sametmax.com/servir-des-fichiers-statiques-avec-nginx/


# How to

**Deploy :**
* Install fresh server (ubuntu / debian ?)
* Install prod
* virtualenv
* apt-get install python-virtualenv
* (once) sudo virtualenv /opt/iteam-env
* (each time we work) source bin/activate
* (to exit the virtual env) deactivate
* App
* git clone
* standard install : cf README.md
* mkdir media + static (inside app or .. ?)
* settings(_prod).py : db (mysql / postgresql)
* cp settings_prod.py iTeam/ : change infos + db (mysql / postgresql)
* python manage.py collectstatic
* python manage.py syncdb (loadFixtures ?)
* Nginx
Expand Down Expand Up @@ -144,6 +152,12 @@ stdout_logfile = /opt/zdsenv/logs/gunicorn_supervisor.log ;
redirect_stderr = true ;
```

Mise a jour de la conf de supervisor :
```
supervisorctl reread
supervisorctl reload
```

## Munin
-> cf doc github zds

19 changes: 0 additions & 19 deletions prod/gunicorn.py.ini

This file was deleted.

2 changes: 1 addition & 1 deletion prod/gunicorn_start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ GROUP=nodraak
echo "Starting gunicorn server for $NAME"

cd $WORKINGDIR
exec gunicorn wsgi:application \
exec ../bin/gunicorn wsgi:application \
-b localhost:8000 \
#--bind=unix:$SOCKFILE
--timeout=300 \
Expand Down

0 comments on commit cf1c911

Please sign in to comment.