forked from bitsoffreedom/pim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SERVER_MAINTENANCE
52 lines (29 loc) · 1.19 KB
/
SERVER_MAINTENANCE
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
~ = /data/WWW/pim.bof.nl
PIM is a project which consists of a custom Django project and a Wordpress
instance with a custom theme.
Git revision control repository can be found here:
https://github.com/bitsoffreedom/pim
This repository holds both the Django project and the Wordpress theme.
STARTUP
We're using the FCGI django server which daemonizes itself. To start it go to
the following directory.
~/pim/
and run:
$ ./runserver.sh
UPGRADE
The checkout should be identical to the GIT repository. Only the configuration
files should be different (settings_local.py, hostname, port).
Please note that retrieving new updates from the repository updates both the
django instance and wordpress theme DIRECTLY. If needed take precautions.
To update the repository:
$ git pull
in the pim directory to get the latest version from git.
When the session handling has changed please truncate the django_session table.
When the model has changed please use ALTER TABLE to update the database tables
accordingly.
WORDPRESS
~/wordpress/wp-content/themes/
Holds the following symlink.
pim -> /data/WWW/pim.bof.nl/pim/wp-theme/
CRONTAB
*/5 * * * * /usr/bin/python /data/WWW/pim.bof.nl/pim/manage.py cleanup