3 ms·
Using Kubernetes can be good for your resume. What I usually do is to use different ports on my workstation. So I can get the fastest iteration, by keeping th
by neilv 2y ago
Using Kubernetes can be good for your resume.
What I usually do is to use different ports on my workstation. So I can get the fastest iteration, by keeping things simple. Be careful to keep the ports straight, though.
You can put the port numbers and other installation-specific files in a `.env` file, application-specific config file, or a supplemental build system config file, that aren't checked into Git.
One way I did this was to have a very powerful `Makefile` that could not only build a complicated system and perform many administrative functions, of a tricky deployment, but also work in both development and production. That `Makefile` pulled in `Makefile-options`, which had all the installation-specific variables, including ports. Other development config files, including HTTPS certificates, were generated automatically based on that. Change `Makefile-options` and everything depending on any of those was rebuilt. When you ran `make` without a `Makefile-options` file, it generated one, with a template of the variables you could set.
Today I'd consider using Kubernetes for that last example, but we were crazy-productive without it, and production worked fine.
- thierrydamiba 2y agoWhat is your preferred method to deploy a python api to a frontend?
- aprdm 2y agocan use ansible (or ssh) and copy a tarball (or python package or pull docker container)