Create a debian package for server deployment #10
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "debian-package"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR uses cargo-deb to deploy the peach-dyndns-server service as a live server on prod using systemd.
In the future, we may want to look into using ansible or a different configuration software for production if we want to make things more robust (e.g. staging and production server), but this is tested and working, and on the plus side has parity with our other repos.
On the peach-vps there is a repo
/srv/peachcloud/peach-dyndns-server/dev-peach-dyndns
which contains the source code.In that repo you can build the .deb using cargo-deb. When you install the cargo-deb, it uses,
/srv/peachcloud/peach-dyndns-server/prod-peach-dyndns
as a working directory which the prod server runs out of.A couple other interesting things.
I've tested this and its working. Merging it in. + available for feedback @mycognosist
@mhfowler
Great work. I really appreciate your documentation of steps and thought-processes.
+1