Commit ec23f7a7e13fed31ea32f92f9500cf2d14e64b5e
1 parent
666ce551
Exists in
master
Dokku deployment
Showing
3 changed files
with
24 additions
and
0 deletions
Show diff stats
@@ -0,0 +1 @@ | @@ -0,0 +1 @@ | ||
1 | +/users/sign_in Errbit |
docs/deployment.md
@@ -4,6 +4,7 @@ to heroku and capistrano. | @@ -4,6 +4,7 @@ to heroku and capistrano. | ||
4 | 4 | ||
5 | See specific notes on deployment via: | 5 | See specific notes on deployment via: |
6 | - [heroku](deployment/heroku.md) | 6 | - [heroku](deployment/heroku.md) |
7 | +- [dokku](deployment/dokku.md) | ||
7 | - [capistrano](deployment/capistrano.md) | 8 | - [capistrano](deployment/capistrano.md) |
8 | 9 | ||
9 | You can use a process manager to deploy Errbit, but Errbit doesn't maintain | 10 | You can use a process manager to deploy Errbit, but Errbit doesn't maintain |
@@ -0,0 +1,22 @@ | @@ -0,0 +1,22 @@ | ||
1 | +# Deploy to Dokku | ||
2 | + | ||
3 | +Deployment to Dokku is very similiar to Heroku. | ||
4 | +For more details see [Heroku](heroku.md) guide. | ||
5 | + | ||
6 | +## Create an app on dokku and push the source code | ||
7 | + | ||
8 | +```bash | ||
9 | +dokku apps:create errrbit | ||
10 | +dokku plugin:install https://github.com/dokku/dokku-mongo.git mongo | ||
11 | +dokku mongo:create errbit errbit | ||
12 | +dokku mongo:link errbit errbit | ||
13 | +dokku config:set errbit HEROKU=1 | ||
14 | +dokku config:set errbit GEMFILE_RUBY_VERSION=2.2.4 | ||
15 | +dokku config:set errbit SECRET_KEY_BASE="$(bundle exec rake secret)" | ||
16 | +dokku config:set errbit ERRBIT_HOST=some-hostname.example.com | ||
17 | +dokku config:set errbit ERRBIT_EMAIL_FROM=example@example.com | ||
18 | +dokku config:set errbit EMAIL_DELIVERY_METHOD=smtp SMTP_SERVER=172.17.42.1 | ||
19 | + | ||
20 | +git remote add dokku dokku@<host>:errbit | ||
21 | +git push dokku master | ||
22 | +``` |