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/
Comments
Post a Comment