Number of static files in redhat cloudhift cloud

I am trying to deploy a flash application in expresshift express. The problem is that links to css files do not work. The layout of my application folder is as follows:

/wsgi /static /myapp /main /pages /static 

Here "wsgi" and the first "static" folders are provided by openshift. However, I put all the static files inside the main / static and created a flash application inside the myapp / _init _ .py file as follows:

 app = Flask("myapp", template_folder='main/pages', static_folder='main/static') 

Now, the readme file inside the static folder provided by openshift says that to serve static files from a different path, I have to use the .htaccess file to overwrite the url. But I could not understand. Of course, the problem disappears if I copy all my static files to the first "static" folder provided by openshift. I just don't want that. So, can someone help me maintain my static files from my own static folder?

+4
source share
1 answer

Can you host a .htaccess file? Alternatively, try running rhc app tail -a appname to see if there is anything in your log files. They can tell you which directories your application is trying to serve using content.

0
source

Source: https://habr.com/ru/post/1402821/


All Articles