Trying to deploy Go app using dokku

Posted December 27, 2015 3.1k views

I’m new to digital ocean and trying to deploy my go app using dokku to an ubuntu machine. When I’m pushing to the server this is the output:

—–> Cleaning up…
—–> Building testapp from herokuish…
—–> Setting config vars
—–> Setting config vars
—–> Adding BUILD
ENV to build environment…
—–> Go app detected
—–> Checking Godeps/Godeps.json file.
—–> Installing go1.4… done
—–> Running: godep go install -tags heroku ./…
—–> Discovering process types
Procfile declares types -> web
—–> Releasing testapp (dokku/testapp:latest)…
—–> Deploying testapp (dokku/testapp:latest)…
—–> DOKKUSCALE file not found in app image. Generating one based on Procfile…
—–> New DOKKU
SCALE file generated
=====> web =0
—–> Running post-deploy
—–> Setting config vars
=====> Application deployed:
remote: /var/lib/dokku/plugins/enabled/00_dokku-standard/commands: line 190: /home/dokku/VHOST: No such file or directory

To dokku@

  • [new branch] master -> master

What is this error? How to clean deploy my app?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Apparently vhosts are enabled on your app but you don’t have a /home/dokku/VHOST file. You can either create this file or run the following command for your application:

dokku config:set testapp NO_VHOST=1