Code Monkey home page Code Monkey logo

openshift_se_plagiarism's Introduction

Using Flask-Migration

Initial Migration

python migrations_manager.py db init
python migrations_manager.py db migrate

Creating a new migration

python migrations_manager.py db migrate

Upgrading

python migrations_manager.py db upgrade

If the Action Hooks aren't executable, run this and then commit the changes:

git update-index --chmod=+x <file>

The following needs to be added to the Gear's environment variables to allow integration with the Stack Exchange APIs

CLIENT_SECRET="YOURSECRET"

YOURSECRET is the value provided when you registered an app. This is accomplished by executing the following command, while logged in via SSH to your gear

echo "YOURSECRET" > ~/.env/user_vars/CLIENT_SECRET

To use this value in a local test environment, create user_settings.py and add CLIENT_SECRET=YOURSECRET to the file

A basic Flask quickstart

With support for serving easy APIs and static content

Build Status

To deploy a clone of this application using the rhc command line tool:

rhc app create flask python-2.7 --from-code=https://github.com/ryanj/flask-base.git

Or link to a web-based clone+deploy on OpenShift Online or on your own OpenShift cloud:

https://openshift.redhat.com/app/console/application_type/custom?cartridges%5B%5D=python-2.7&initial_git_url=https%3A%2F%2Fgithub.com%2Fryanj%2Fflask-base.git

Local server

Start a local webserver by running:

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/)

openshift_se_plagiarism's People

Contributors

awegnergithub avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.