Docs Doc: add <app> <domain> returns an unsupported vhost config. disable vhost support

This is my first site I visited, I tried to use Dokku to deploy the rails app to Digital Ocean.

This is the standard Dokku install on the Ubuntu base virtual machine hosted on Digital Ocean

When I try to run:

dokku domains:add myapp mydomain.com

I get the following error

=====> unsupported vhost config found. disabling vhost support
=====> config:set-norestart is deprecated as of v0.3.22
-----> Setting config vars
       NO_VHOST: 1
-----> VHOST support disabled, deleting four-heroes/VHOST
-----> Added mydomain.com to myapp

The last line looks like it might have worked, despite the errors. However, when I run:

dokku domains myapp

I get this message.

=====> unsupported vhost config found. disabling vhost support
=====> config:set-norestart is deprecated as of v0.3.22
-----> Setting config vars
       NO_VHOST: 1
=====> myapp Domain Names
cat: /home/dokku/myapp/VHOST: No such file or directory

Besides the Postgresql plugin, this is the default installation of Dokku. The application works well, and I can access it in the combination ip.ad.dr.ess: port, and I can use SSH for the domain (ssh root@mydomain.com ).

, .

.

+4
1

HOSTNAME dokku, . VHOST , .

, VHOST . SSH ( sudo VHOST)

cd /home/dokku
touch VHOST
chmod 0755 VHOST
# Use your editor of choice nano, vim etc. 
# to add your hostname to VHOST file, eg. mydomain.com

nginx.conf. dokku nginx:build-config myapp .

. /home/dokku/myapp , , . db.

, dokku domains myapp

=====> myapp Domain Names
myapp.mydomain.com

dokku domains

.

+5

Source: https://habr.com/ru/post/1599158/


All Articles