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

Use localhost:4000 as the default pages host in development #50

Merged
merged 5 commits into from
Aug 11, 2016

Conversation

benbalter
Copy link
Contributor

Fixes #47.

@benbalter benbalter self-assigned this Mar 30, 2016
@parkr
Copy link
Member

parkr commented Apr 14, 2016

@benbalter I thought PAGES_ENV and JEKYLL_ENV were different things? Why would we conflate them?

@benbalter
Copy link
Contributor Author

I thought PAGES_ENV and JEKYLL_ENV were different things? Why would we conflate them?

Explained my understanding in #49 (comment). Would love to hear your thoughts there, as I suspect the two discussions are really one.

@benbalter benbalter removed their assignment Apr 14, 2016
@@ -33,21 +33,38 @@
end
end

it "picks up on JEKYLL_ENV" do
with_env "PAGES_ENV", "" do
with_env("JEKYLL_ENV", "halp") do
Copy link
Member

Choose a reason for hiding this comment

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

Consistent parentheses please 😄

@benbalter
Copy link
Contributor Author

@parkr now that tests pass, how does this look to you?


def custom_domains_enabled?
dotcom? || test?
end

def env
env_var 'PAGES_ENV'
env_var 'PAGES_ENV', ENV['JEKYLL_ENV']
end
Copy link
Member

Choose a reason for hiding this comment

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

Still feeling dubious about this but 🤷

@parkr
Copy link
Member

parkr commented Aug 11, 2016

LGTM

@benbalter
Copy link
Contributor Author

LGTM.

@benbalter
Copy link
Contributor Author

@jekyllbot: merge +major

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Properly set site.github.url when in Jekyll.development
3 participants