Create a debian package for server deployment #10
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
help wanted
invalid
maintenance
peach-lib
peach-network
peach-oled
peach-stats
peach-web
question
refactor
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: PeachCloud/peach-dyndns-server#10
Loading…
Reference in New Issue
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