-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.txt
45 lines (25 loc) · 1.21 KB
/
README.txt
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
Midgard Python MVC
==================
Installation and development setup
==================================
First create virtualenv for Python somewhere ie. in your home -dir. This script installs virtualenv with Pylons:
curl http://pylonshq.com/download/0.9.7/go-pylons.py | python - midgard_pylons
Activate the virtual environment:
source midgard_pylons/bin/activate
Next go back to ``midgardmvc`` folder and run the following to download all dependencies
python setup.py develop
Symlink MVC schemas to Midgard schema folder
(sudo) ln -s /PATH_TO_MIDGARDMVC/config/midgardmvc_core.xml /usr/share/midgard2/schema/midgardmvc_core.xml
Next configure your Midgard configuration in midgard.local.ini (Defaults can be found in midgard.ini)
Then setup simple Midgard site with default Midgard objects
paster setup-app development.ini
Production
==========
Make a config file as follows:
paster make-config midgardmvc production.ini
Tweak the config file as appropriate and then setup the application:
paster setup-app production.ini
Running with paster
===================
Using the --reload switch allows you to develop without restarting the server after code changes
paster serve --reload development.ini