-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Mini Tutorial for installing huginn on dokku
madflow edited this page Jan 22, 2016
·
3 revisions
Mini-Tutorial for installing huginn on dokku
A docker-powered PaaS that helps you build and manage the lifecycle of applications http://dokku.viewdocs.io/dokku/
- dokku version >= v0.4.9
- http://dokku.viewdocs.io/dokku/installation/
Let's assume a dokku installation at "dokku.me". The ssh user is "root".
git clone https://github.com/cantino/huginn.git
cd huginn
ssh -t [email protected] dokku apps:create huginn
git remote add dokku [email protected]:huginn
ssh -t [email protected] dokku plugin:install https://github.com/dokku/dokku-postgres.git
ssh -t [email protected] dokku postgres:create huginn
ssh -t [email protected] dokku postgres:link huginn huginn
- Replace
APP_SECRET_TOKEN=your-secret-token
with something secret and sane. -
RAILS_SERVE_STATIC_FILES=true
is neccessary so lazy people do not have to create their own nginx configuration.
ssh -t [email protected] dokku config:set huginn DATABASE_ADAPTER=postgresql
ssh -t [email protected] dokku config:set huginn PROCFILE_PATH=deployment/heroku/Procfile.heroku
ssh -t [email protected] dokku config:set huginn APP_SECRET_TOKEN=your-secret-token
ssh -t [email protected] dokku config:set huginn RAILS_ENV=production
ssh -t [email protected] dokku config:set huginn RAILS_SERVE_STATIC_FILES=true
- After deployment huginn needs some time to "boot". Give it 30 seconds after deployment finishes before filing a complaint.
git push dokku master
ssh -t [email protected] dokku run huginn bundle exec rake db:migrate
ssh -t [email protected] dokku run huginn bundle exec rake db:seed
ssh -t [email protected] dokku ps:restart huginn