deployment - Deploy python deb test project using make-deb and dh-virtualenv -


in development use anaconda manage environments. have not yet developed python project production. in context have 2 related questions.

first, solution incurs lower technical debt: a. install anaconda on production servers; or b. deploy python deb packages?

second, simplest structure of python project folders , files test functionality of make-deb , dh-virtualenv described in last section of nylas blog article?

nylas blog (how deploy python code: building, packaging & deploying python using versioned artifacts in debian packages)

https://www.nylas.com/blog/packaging-deploying-python/

make-deb: https://github.com/nylas/make-deb

dh-virtualenv: https://github.com/spotify/dh-virtualenv

for test add requests package standard python 2.7 environment , write 1 module download , save small csv file. test make-deb , dh-virtualenv deploy cloud server or raspberry pi server. want run code verify download app works expected on server. want further develop application , test deployment tools using make-deb , dh-virtualenv see if can more manage development production.

edit: based on further research far appears anaconda cannot made export requirements.txt file. appears options use virtualenv, make-deb, , dh-virtualenv; or use anaconda , miniconda described in following blog articles:

https://tdhopper.com/blog/2015/nov/24/my-python-environment-workflow-with-conda/

https://www.thoughtvector.io/blog/deployment-with-anaconda/


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -