Skip to content
This repository was archived by the owner on Jul 19, 2021. It is now read-only.

add production env #84

Merged
merged 5 commits into from
Apr 19, 2017
Merged

add production env #84

merged 5 commits into from
Apr 19, 2017

Conversation

NathanPJF
Copy link
Contributor

@NathanPJF NathanPJF commented Jan 18, 2017

Fix for #83

Partial fix for Shopify/slate-tools#39

@macdonaldr93 @cshold @t-kelly Any concerns about this? Alternatively, I just remove "live" as the initial value.

@cshold
Copy link
Contributor

cshold commented Jan 18, 2017

This works. The only alternative I could think of would be to leave theme_id: "live" — because it's not an obvious value and my assumption is people work on the live theme more often then an unpublished one — and change store to my-development-shop.myshopify.com

@t-kelly
Copy link
Contributor

t-kelly commented Jan 18, 2017

I like it 👍 Will running slate start default to the development config?

@macdonaldr93
Copy link
Contributor

Only concern is that slate commands wouldn't work out of the box. I would just make sure that the error message thrown from having a blank theme_id is clear.

@t-kelly
Copy link
Contributor

t-kelly commented Jan 19, 2017

Could we add a step in the new theme command that asks for your dev env theme id?

@macdonaldr93
Copy link
Contributor

@t-kelly we wanted to reduce time to on-boarding and complexity of on-boarding. Asking someone for a theme id might confuse theme as they might not have a store yet, or be ready to upload the theme. Obviously up to you guys how you want to handle this but that was the original thought process. There used to be 4-5 questions to generate a new theme and we had a templating language to inject those variables and generate the appropriate theme... but it didn't seem necessary if someone just wanted to take a peak at a boilerplate theme.

@t-kelly
Copy link
Contributor

t-kelly commented Jan 30, 2017

I totally agree with the philosophy - but is it okay that we throw them into a dev environment without a way to immediately preview the current state of their project? I feel like that could be something that required when setting up your new theme?

@macdonaldr93
Copy link
Contributor

Hmmmm... yeah I'm not sure what's better. Getting a theme id isn't easy so it might turn people away but then slate might seem broken without the theme id. Maybe a/b test? haha I'm not sure what the better situation is.

@NathanPJF
Copy link
Contributor Author

Merging this as a band-aid fix for the issues reported in Shopify/slate-tools#39.

I recognize this requires an extra step when testing, but it's worth it to avoid having devs accidentally wipe their live site. You can always write the env flag if you don't want to go looking for the theme id: slate deploy -e production

Also, now the config.yml has an example of how to create multiple environments in your config file. 😎

@NathanPJF NathanPJF merged commit fd17716 into master Apr 19, 2017
@NathanPJF NathanPJF deleted the config-default-env branch April 19, 2017 17:25
t-kelly pushed a commit that referenced this pull request Jul 31, 2017
* simplify to requiring in theme commands

* dynamically pull in theme commands and move global commands out

* remove minimist

* move theme creation to command and other functions to utils

* group variables

* add comments to functions

* move out output slate theme check

* remove extra variable

* touch up output

* redo shrinkwrap

* improve error output

* add clean up after theme download

* add prompt when dirName isn't provided

* reword prompt message

* move babel-polyfill from devDep to dep

* update dirName regex

* remove &
t-kelly pushed a commit that referenced this pull request Jul 31, 2017
* simplify to requiring in theme commands

* dynamically pull in theme commands and move global commands out

* remove minimist

* move theme creation to command and other functions to utils

* group variables

* add comments to functions

* move out output slate theme check

* remove extra variable

* touch up output

* redo shrinkwrap

* improve error output

* add clean up after theme download

* add prompt when dirName isn't provided

* reword prompt message

* move babel-polyfill from devDep to dep

* update dirName regex

* remove &
t-kelly pushed a commit that referenced this pull request Jul 31, 2017
* simplify to requiring in theme commands

* dynamically pull in theme commands and move global commands out

* remove minimist

* move theme creation to command and other functions to utils

* group variables

* add comments to functions

* move out output slate theme check

* remove extra variable

* touch up output

* redo shrinkwrap

* improve error output

* add clean up after theme download

* add prompt when dirName isn't provided

* reword prompt message

* move babel-polyfill from devDep to dep

* update dirName regex

* remove &
@lock
Copy link

lock bot commented Oct 26, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants