fk-deploy/README.md

18 lines
861 B
Markdown
Raw Permalink Normal View History

2022-09-03 22:21:28 +00:00
# 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