Skip to content

Instantly share code, notes, and snippets.

@ryuchan00
Created March 28, 2018 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryuchan00/8d8df099345a47e655cc3bdcba913ad7 to your computer and use it in GitHub Desktop.
Save ryuchan00/8d8df099345a47e655cc3bdcba913ad7 to your computer and use it in GitHub Desktop.
Deploying SampleApp to Dokku.
# [Dokku - The smallest PaaS implementation you've ever seen](http://dokku.viewdocs.io/dokku/deployment/application-deployment/#deploying-to-dokku)
# login root user.
dokku apps:create ruby-rails-sample
# install the postgres plugin
# plugin installation requires root, hence the user change
dokku plugin:install https://github.com/dokku/dokku-postgres.git
# create a postgres service with the name rails-database
dokku postgres:create rails-database
# each official datastore offers a `link` method to link a service to any application
dokku postgres:link rails-database ruby-rails-sample
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment