From bbc5c1f3654c54a87de2bd685a98e0c12fd43f0d Mon Sep 17 00:00:00 2001 From: Tocho Tochev Date: Mon, 17 Apr 2023 18:32:35 +0300 Subject: [PATCH] Add deployment docs --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 9d112367..63ff6802 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,25 @@ Installation 1. `git clone https://github.com/initlab/fauna.git` 2. Run `bin/setup` and follow the instructions. 3. You can now run the rails server with `bin/rails s` and login. + +Deploying a New Version +----------------------- + +The deployment is done using `capistrano`. + +Initial setup: + +``` +bundle config set --local path '.bundle' +bundle install + +# add your public ssh key in fauna@spitfire.initlab.org:./.ssh/authorized_keys +``` + +If you need to add/change secrets/config, do so in `~fauna/fauna/shared/config/*.yml` . + +Deploy using: + +``` +bundle exec cap fauna deploy +```