public
Description: Host your Google AppEngine apps on your own server.
Homepage: http://appdrop.com
Clone URL: git://github.com/jchris/appdrop.git
appdrop / README
100644 89 lines (64 sloc) 2.091 kb
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
controllers
 
views
 
# /
# link to login/signup
# link to browse apps
 
# /login - this is the main page users see
# ability to signup or login
# params:
# email (shown from cookie if logged-in to appdrop)
# password
# -- (for signup)
# password confirmation
# nickname
 
/home
  list of your apps
  link to make a new app
  
/home/fug-this
  control panel for your app
  maybe just mount the google dev console here?
 
# /apps
# browse apps
#
# /apps/fug-this
# public info page for app
# link to app
  
 
====
config zone
 
  # paths
  mkdir -p /var/apps/hello-world/data
  mkdir -p /var/apps/hello-world/log
  # also echo the assigned port into a file the dir just cause
 
 
  #nginx conf
  server {
    listen 80;
    server_name hello-world.appdrop.com;
    access_log /var/apps/hello-world/log/access.log;
    location / {
      proxy_pass http://localhost:3000;
    }
  }
 
  #dev server start
 
  /root/packages/google_appengine/dev_appserver.py -p 3000 --datastore_path=/var/apps/hello-world/data/app.datastore --history_path=/var/apps/hello-world/data/app.datastore.history /var/apps/hello-world/app >> /var/apps/hello-world/log/server.log 2>&1 &
 
  # reload the confs
  /etc/init.d/nginx reload
 
 
  ############################################## fug-this
 
  # paths
  mkdir -p /var/apps/fug-this/data
  mkdir -p /var/apps/fug-this/log
  # also echo the assigned port into a file the dir just cause
 
 
  #nginx conf
  server {
    listen 80;
    server_name fug-this.appdrop.com;
    access_log /var/apps/fug-this/log/access.log;
    location / {
      proxy_set_header X-Real-IP $remote_addr;
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $http_host;
      proxy_redirect false;
      proxy_pass http://localhost:3001;
    }
  }
 
  #dev server start
 
  /root/packages/google_appengine/dev_appserver.py -p 3001 --datastore_path=/var/apps/fug-this/data/app.datastore --history_path=/var/apps/fug-this/data/app.datastore.history /var/apps/fug-this/app >> /var/apps/fug-this/log/server.log 2>&1 &