-
Notifications
You must be signed in to change notification settings - Fork 2
/
README
53 lines (46 loc) · 1.53 KB
/
README
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
53
#pp4gae -- PyPress For Google App Engine
#pp4gae file structure
project/
ABOUT
README
LICENSE
TODO
__init__.py
app.yaml
controllers/
cron/
languages/
models/
modules/
routes.py
static/
views/
#usage
make you have installed python, Google App Engine SDK
prepare:
download web2py from http://web2py.com/examples/default/download
unpackage web2py
cp -r ~/pp4gae ~/web2py/applications/
cp ~/web2py/applications/pp4gae/app.yaml ~/web2py/
cp ~/web2py/applications/pp4gae/routes.py ~/web2py/
run locally:
cd ~/web2py
python2.5 $GAE_DIR/dev_appserver.py ./
# visit http://localhost:8080/
deploy to appspot.com:
rm *.w2p # and any other apps under applications/ GAE don't needs these, better this way
vim app.yaml
# change "application: pp4gae" to "application: your_app"
python2.5 $GAE_DIR/appcfg.py update ./
# http://your_app.appspot.com might won't work right away,
# GAE sever needs some time to index the database,
# so wait and check again
after deployed successfully:
login with email:"admin",password:"admin"
change your password and edit your information
next time login with your email and new password
NOTES:
1. "python web2py.py" works, but admin won't work on this, caused by GAE
2. I suggest don't change the directory name "pp4gae", it may cause pp4gae not work, unless you modify routes.py accordingly
3. (add more later)
Any questions email to: zrenx.cn@gmail.com