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 &