这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@andrewsomething
Copy link
Contributor

Hey! Just a quick little fix for the web installer. When ported to Python, it looks like writing out the value of the hostname field to /home/dokku/HOSTNAME was accidentally dropped and only /home/dokku/VHOST is written.

Compare to the current implementation to the current one, specifically:

File.open("#{dokku_root}/HOSTNAME", "w") {|f| f.write params[:hostname] }

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block should go write below the previous with open call.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be outside of the if ... else? I think HOSTNAME should get written regardless of whether or not virtualhost naming is used, no?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah you're right :D

@josegonzalez
Copy link
Member

OOPS! Good catch!

josegonzalez added a commit that referenced this pull request Jan 4, 2016
Write out /home/dokku/HOSTNAME as specified by the web installer.
@josegonzalez josegonzalez merged commit f13c77d into dokku:master Jan 4, 2016
@josegonzalez
Copy link
Member

Thanks for the pr! I'll try and make a release tonight.

@andrewsomething andrewsomething deleted the hostname-set-up branch January 4, 2016 18:53
@andrewsomething
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants