by wizzwizz4 · 5y ago · 0 comments
$ cat deploy.sh
#!/bin/sh
scp app user@host;
ssh user@host "nohup ./app"
At some point you have to use something to get it to the production server. Why not scp?Do you think using only scp will prevent you from deploying the wrong artifact? Or deploying to all-but-one production node? Or scping but forgetting to run the nohup?
Honestly setting up a github action to do this takes very little time, doesn't depend on containers, doesn't really add complexity to your stack. CircleCI exists and is equally easy. To suggest that your above-posted script is just as good is, to me, mostly just NIH + developer bikeshedding. YAGNI is great for being honest about the needs of an org and ignoring tools or frameworks that aren't appropriate, but there really are tools that exist that add consistency in ways that don't really increase complexity all that much.
Because this way doesn't leave explicit audit/deployment logs.