This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex

1. Where everything is

2. Setting up a Planeteria instance in OpenShift

rhc app create --from-code https://github.com/owtaylor/Planeteria.git
 planeteria python-2.7 # ‘planeteria’ here is the app name
rhc cartridge add cron-1.4 -a planeteria
rhc ssh -a planeteria
<in the partition>
cd app-root/data
echo http://planeteria-<mydomain>.rhcloud.com > base_href

3. Using a custom name for a Planeteria instance

4. To Do

4.1. Static content

The OpenShift Python setup (the Python “cartridge”) is quite limited in its handling of static content - all static content must live in the application in the wsgi/static directory and be served with an URL of static/. For this reason, the static data is currently not served statically at all, but rather is served by the WSGI handler. The downsides of this are:

Approaches to improving things here:

I think the first approach is probably sufficient on its own, unless the traffic level gets very high.

4.2. Templates and structure

4.3. Cleanups

4.4. Misc

4.5. https

As a general principle, all form submissions should be over https, so having new_planet.py and admin.py be unencrypted is somewhat bad. It’s probably best to just make the entire site https based - this is automatically available with openshift if you access things through the standard <appname>-<domain>.rhcloud.com, but will require getting a SSL certificate to make it work has https://www.planeteria.info.


2024-10-23 11:28