aaossa/flask-openshift

Openshift 3.3 Deployment

open1312 opened this issue · 3 comments

Is this application hosted on Openshift 3 or later?

And if not then could you please help me to identify the directory structure for the Flask application to be deployed on Openshift 3.

I'm sorry @open1312 , but this project was not meant to be used with OpenShift 3.x. The directory structure of the Flask app depends of the size of your app. Is your application big? Maybe you could use something like this:

run.py
Application
    __init__.py
    folder
        file.py
    another.py

Thanks for the prompt reply. Actually its a simple HTML5 website with no backend data. So do you have any idea how should a directory structure look like for Flask in Openshift 3.x

You could use the structure from this OpenShift demo repository, and given that it seems like you want a static page you could use a package-like structure. I prefer this structure because all of the application files are together in the same folder, and the app (package) is at the same level that the server files (.s2i folder, for instance).

Hope this works for you 😁