From ec23f7a7e13fed31ea32f92f9500cf2d14e64b5e Mon Sep 17 00:00:00 2001 From: Edgars Beigarts Date: Sat, 20 Feb 2016 00:30:56 +0200 Subject: [PATCH] Dokku deployment --- CHECKS | 1 + docs/deployment.md | 1 + docs/deployment/dokku.md | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+), 0 deletions(-) create mode 100644 CHECKS create mode 100644 docs/deployment/dokku.md diff --git a/CHECKS b/CHECKS new file mode 100644 index 0000000..02a571d --- /dev/null +++ b/CHECKS @@ -0,0 +1 @@ +/users/sign_in Errbit diff --git a/docs/deployment.md b/docs/deployment.md index 4589c35..a7dd9aa 100644 --- a/docs/deployment.md +++ b/docs/deployment.md @@ -4,6 +4,7 @@ to heroku and capistrano. See specific notes on deployment via: - [heroku](deployment/heroku.md) +- [dokku](deployment/dokku.md) - [capistrano](deployment/capistrano.md) You can use a process manager to deploy Errbit, but Errbit doesn't maintain diff --git a/docs/deployment/dokku.md b/docs/deployment/dokku.md new file mode 100644 index 0000000..0e68d10 --- /dev/null +++ b/docs/deployment/dokku.md @@ -0,0 +1,22 @@ +# Deploy to Dokku + +Deployment to Dokku is very similiar to Heroku. +For more details see [Heroku](heroku.md) guide. + +## Create an app on dokku and push the source code + +```bash +dokku apps:create errrbit +dokku plugin:install https://github.com/dokku/dokku-mongo.git mongo +dokku mongo:create errbit errbit +dokku mongo:link errbit errbit +dokku config:set errbit HEROKU=1 +dokku config:set errbit GEMFILE_RUBY_VERSION=2.2.4 +dokku config:set errbit SECRET_KEY_BASE="$(bundle exec rake secret)" +dokku config:set errbit ERRBIT_HOST=some-hostname.example.com +dokku config:set errbit ERRBIT_EMAIL_FROM=example@example.com +dokku config:set errbit EMAIL_DELIVERY_METHOD=smtp SMTP_SERVER=172.17.42.1 + +git remote add dokku dokku@:errbit +git push dokku master +``` -- libgit2 0.21.2