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

hlx deploy should not set package property for _local_ strains #518

Closed
tripodsan opened this issue Feb 8, 2019 · 5 comments
Closed

hlx deploy should not set package property for _local_ strains #518

tripodsan opened this issue Feb 8, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@tripodsan
Copy link
Contributor

Description
strains that have a localhost url, are considered to be used only for local development, and therefor should not get a package property during deploy. this also avoids creating conditions and strains configs during publish.

Version:

$ hlx --version
0.13.4-pre.1

Additional context
also see #510

@tripodsan tripodsan added the bug Something isn't working label Feb 8, 2019
@tripodsan tripodsan self-assigned this Feb 12, 2019
@tripodsan
Copy link
Contributor Author

in order to mark a strain for local development, set the code repo to "http://localhost/local/default.git". having the url as indicator is wrong and gets even more complicated with proper conditions.

@tripodsan tripodsan removed their assignment Feb 12, 2019
@filmaj
Copy link
Contributor

filmaj commented Feb 21, 2019

Just to double-check: I should set the code as above and also drop the url, correct?

Currently in our config we have a default of &defaultRepo: http://localhost/local/default.git and our basestrain sets code, content and static as defaultRepo. Finally, all of our strains inherit from basestrain - but the "local" strains override url and set it to http://localhost:3000 (sometimes with an additional path in the URL).

Just want to be sure I'm doing the right thing 😄

@filmaj
Copy link
Contributor

filmaj commented Feb 21, 2019

Actually, thinking about this some more, we need to use url for the local strains as some strains are mounted on specific URL paths. If I drop url from the local strain configs then we lose that mounting ability locally.

@filmaj filmaj reopened this Feb 21, 2019
@tripodsan
Copy link
Contributor Author

yes, that is correct. but the code property influences on what is deployed. having it point to the http://localhost/local/default.git prevents the strain from being touched by the deployment.

you can still use the url to select the strain during local development

@filmaj
Copy link
Contributor

filmaj commented Feb 22, 2019

having [code] point to the http://localhost/local/default.git prevents the strain from being touched by the deployment.

Got it!

So the strains that we have set up for local deployment won't be published anymore, perfect.

The change we need to make on the site, then, is to set up the helix-demo.xyz strains not to use http://localhost/local/default.git code, content or static properties, but instead point to the remote repo. I think that was the issue I was having.

Thank you for talking this through with me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants