K
K
kolofut2014-05-01 17:01:47
Flask
kolofut, 2014-05-01 17:01:47

How to organize a release build (Publish) for a Flask application?

When developing in Visual Studio, MVC applications, you can do "Publish" and the folder will contain only the files necessary for the application to work, how to do the same for a Flask application?
Actually, you need a little:
1. Exclude some folders (for example, a folder with tests) and some files that are needed only for the Debug mode.
2. Exclusion by mask (eg *.hg)
3. Compress and merge js and css files.
4. Convert .py files to bytecode

PS: PyCharm has an analogue, but it does not satisfy points 3 and 4, but I want not to depend on the IDE

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Abramov, 2014-05-01
@kolofut

Absolutely standard setuptools / distutils.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question