add README

This commit is contained in:
Michcio 2022-09-04 00:21:28 +02:00
parent f572008805
commit 4275a5d108

17
README.md Normal file
View file

@ -0,0 +1,17 @@
# my method of deploying foundkey
i don't really like accidentally messing up an instance by messing with its source code and node\_modules while the service is on, so i made this
there are two staging environments, `sunrise` and `sunset`, and a bunch of symlinks. the systemd service (nixos-managed) is set to launch the server in the directory under the symlink `current`
the playbook updates the environment that is not marked as current and then switches up the symlinks and restarts the systemd service
this method depends on my patch to foundkey that turns media uploads location into a configurable variable rather than a guessed constant
initially i wanted to just do a new fresh build every time but apparently node-gyp doesn't cache much between various locations so it was taking too long
## todos?
- [ ] migrations
- [ ] blue-green rollback