A pretty large Python based project I'm working on has to deal with a situation some of you might know:
you have a local checkout which your server can not be run from (history), you alter a couple of files, e.g. by editing or git
-operations and then you want to locally 'patch' a running server residing at a different location of the file system.
[Local Checkout, e.g. /home/me/project
] = deploy => [Running Environment, e.g. /opt/project
]
The 'deployment' process might have to run arbitrary build scripts, copy modified files, maybe restart a running service and so on.
Note that I'm not talking about CI or web-deployment - it's more like you change something on your source files and want to know if it runs (locally).
Currently we do this with a self-grown hierarchy scripts and want to improve this approach, e.g. with a make
-based approach.
Personally I dislike make
for Python projects for a couple of reasons, but in principle the thing I'm looking for could be done with make
, i.e. it detects modifications, knows dependencies and it can do arbitrary stuff to meet the dependencies.
I'm now wondering if there isn't something like make
for Python projects with same basic features as make
but with 'Python-awareness' (Python binding, nice handling of command line args, etc).
Has this kind of 'deploy my site for development'-process a name I should know? I'm not asking what program I should use but how I should inform myself (examples are very welcome though)
question from:
https://stackoverflow.com/questions/65844335/how-to-properly-locally-deploy-a-python-based-server-application-for-developme 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…