Created
March 28, 2018 05:01
-
-
Save ryuchan00/8d8df099345a47e655cc3bdcba913ad7 to your computer and use it in GitHub Desktop.
Deploying SampleApp to Dokku.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# [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