From 02a71c8afc9affe9b39cc159b8e22fff2a78cd1e Mon Sep 17 00:00:00 2001 From: Jhonas Wernery Date: Fri, 21 Jul 2023 13:05:21 +0200 Subject: [PATCH] Update docs --- docs/gitclear.md | 18 +++++++++++++++++- nix/README.md | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/docs/gitclear.md b/docs/gitclear.md index 67a9dfeb..0dcb7c5c 100644 --- a/docs/gitclear.md +++ b/docs/gitclear.md @@ -19,6 +19,8 @@ $EDITOR ansible/roles/webserver/tasks/nginx.yml # Run the playbook ansible-playbook provision.yml --inventory ./hosts --become + +cd .. ``` ## Deploying errbit @@ -30,8 +32,22 @@ current remote `main` branch on GitHub to the host defined in ``` bundle install +cap production deploy + +# Only for initial deployment +cap production db:setup +``` + +For updates, commit your changes and push them to the `main` branch. +Then run: +``` cap production deploy ``` This will re-deploy errbit from the remote `main` branch in this repository to -`/home/errbit/current` on errbit.gitclear.com. +`/home/errbit/current` on errbit.gitclear.com and restart `passenger`. + +URL: https://errbit.gitclear.com +Login with email `errbit@errbit.gitclear.com` and the password you set for the +`ERRBIT_ADMIN_PASSWORD` environment variable in ansible-vault +`errbit_env_content.yml`. diff --git a/nix/README.md b/nix/README.md index 2287301f..23c55c34 100644 --- a/nix/README.md +++ b/nix/README.md @@ -14,7 +14,7 @@ echo "experimental-features = nix-command flakes" >> ~/.config/nix/nix.conf 3. Run the following to enter the `devshell` with all required dependencies installed. ``` -nix develop +nix develop --impure ./nix ``` #### Optional: