This repository has been archived by the owner on Feb 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 642
Drupal VM on production does not set hostname #1067
Labels
Comments
oxyc
changed the title
Following Drupal VM to a prod environment docs doesnt setup mail correctly
Following Drupal VM on a prod environment docs doesnt setup mail correctly
Dec 21, 2016
The rabbit hole goes deeper of course, see How to get your server's emails through Gmail's spam filter with Exim and Configure sendmail on CentOS to allow sending of email from localhost, among other articles about SPF, reverse DNS, DKIM, etc. But we should at least get the basics correct, so I'd be fine configuring the things you list above there. |
True... maybe I should rename the issue to Drupal VM on production does not set correct hostname and we just make sure |
oxyc
added a commit
to oxyc/drupal-vm
that referenced
this issue
Dec 21, 2016
oxyc
added a commit
to oxyc/drupal-vm
that referenced
this issue
Dec 21, 2016
oxyc
added a commit
to oxyc/drupal-vm
that referenced
this issue
Dec 21, 2016
That sounds good to me. |
oxyc
changed the title
Following Drupal VM on a prod environment docs doesnt setup mail correctly
Drupal VM on production does not set correct hostname
Dec 21, 2016
oxyc
changed the title
Drupal VM on production does not set correct hostname
Drupal VM on production does not set hostname
Dec 21, 2016
Fixed via PR #1070 |
kekkis
pushed a commit
to kekkis/drupal-vm
that referenced
this issue
Feb 23, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue Type
Full console output
Summary
If we want to improve on how well drupal vm works on production environments, this would be nice to provision out of the box. Otherwise maybe just some docs?
On Ubuntu 16.04
vagrant_hostname
needs to be set todrupal_domain
in theprod.config.yml
example. This also fixes issues with mailhog/solr using the wrong hostname in the dashboard127.0.0.1 {{ vagrant_hostname }}
to/etc/hosts
/etc/hostname
to{{ vagrant_hostname }}
(edit: just realized this is usually set to the hostname without the TLD. Why is that?)/etc/mailname
to{{ vagrant_hostname }}
hostname {{ vagrant_hostname }}
so it works without a reboot?service hostname restart
did not work.Sidenote: Amazing how well this worked otherwise! I got wildcard subdomains with https and proxy-only access to dev tools with just making changes in
config.yml
. Following the docs worked great for linode as well.Edit: We also fix this on travis to be able to run the tests https://github.com/geerlingguy/drupal-vm/blob/master/.travis.yml#L66
The text was updated successfully, but these errors were encountered: