Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to access previewer because of default server name being localhost #1745

Open
sgharms opened this issue Aug 3, 2015 · 0 comments
Open

Comments

@sgharms
Copy link

sgharms commented Aug 3, 2015

I do all my work on my Digital Ocean droplet (so pure CLI-land).

I write a post and the preview server allows me to point link (text-based browser) to 3400 and see my in-development post (yay).

But what if I want my remote machine (i.e. a laptop) to see that same server? To the best of my debugging, the rack server starts up serving while bound to localhost. If I adjust the rackup command, for the :preview task to include a -o to mydomain.com I'm able to access from a full browser.

As such, the feature request would be to add support for a hostname to the Rakefile. I believe this option could be defined elsewhere (in the config.ru), but adding the option in Rakefile keeps the configuration parameter in the same abstraction as server_port, so that seems consistent.
#1744 changes the code to work in the base-case. Changing the value of server_host to mydomain.com has me working both locally and remotely.

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

No branches or pull requests

1 participant