Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryanj/pyramid-base
a basic pyramid demo
https://github.com/ryanj/pyramid-base
Last synced: 13 days ago
JSON representation
a basic pyramid demo
- Host: GitHub
- URL: https://github.com/ryanj/pyramid-base
- Owner: ryanj
- Created: 2016-01-24T01:27:28.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-30T06:29:56.000Z (almost 9 years ago)
- Last Synced: 2024-10-11T00:12:21.332Z (about 1 month ago)
- Language: Python
- Size: 16.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A basic Pyramid example
*With support for serving easy APIs and static content*Learn how to extend this basic Pyramid example at [TryPyramid.com](http://trypyramid.com/)
[![LAUNCH ON OpenShift](https://launch-shifter.rhcloud.com/launch/LAUNCH ON.svg)](https://launch-shifter.rhcloud.com/r?url=https%3A%2F%2Fopenshift.redhat.com%2Fapp%2Fconsole%2Fapplication_type%2Fcustom%3F%26cartridges%5B%5D%3Dpython%26initial_git_url%3Dhttps%3A%2F%2Fgithub.com%2Fryanj%2Fpyramid-base.git%26name%3Dpyramid)
To deploy a clone of this application using the [`rhc` command line tool](http://rubygems.org/gems/rhc):
rhc app create pyramid python-2.7 --from-code=https://github.com/ryanj/pyramid-base.git
Or [link to a web-based clone+deploy](https://openshift.redhat.com/app/console/application_type/custom?cartridges%5B%5D=python-2.7&initial_git_url=https%3A%2F%2Fgithub.com%2Fryanj%2Fpyramid-base.git) on [OpenShift Online](http://OpenShift.com) or on [your own OpenShift cloud](http://openshift.org/):# OpenShift V3 / Kubernetes
You'll need the `oc` command line tool to install this project in a Docker-based OpenShift environment. The cli tool binary is available via the [`openshift/origin` releases page](https://github.com/openshift/origin/releases/).
Use [vagrant](http://openshift.org/vm) or [ansible](https://github.com/openshift/openshift-ansible) to setup your own deployment of OpenShift, then use `oc login` to authenticate. These instructions assume that a basic [nodejs builder image](https://github.com/openshift/origin/tree/master/examples/image-streams) has already been made available in the `openshift` project by an admin.
Build and deploy the application from the command line using the `oc` command line tool, and a nodejs builder image:
oc new-app openshift/python~http://github.com/ryanj/pyramid-base
## Local server
Start a local webserver by running:```bash
python app.py
```## License
This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0 (http://creativecommons.org/publicdomain/zero/1.0/)