meeech / shopify.tmbundle

A bundle for interacting with Shopify Theme Assets.
http://meeech.github.com/shopify.tmbundle/
136 stars 31 forks source link

Multi-Shop config confusion #34

Open resistorsoftware opened 13 years ago

resistorsoftware commented 13 years ago

Hi,

Config file has two shops, one live and one for dev. Both have valid keys and work when uploading files. That is, you can switch to one shop or the other and upload files to the correct store.

If you have two shops and set the use="live" directive to point to the live store, which is second in the list, and use the bundle command to switch to the live store, you get confirmation that you've switched. If you now use the bundle option to download the entire theme, you may notice, like I did, that it downloads from the dev site.

You may notice that when you upload changes to the live site and realize you've overwritten the live site with code from the dev site, like I did. You may notice that this is not what you wanted. I know I did.

I am now convinced that there is a better way to deal with multi-sites, and it involves the use of my trusty vim editor, separate directories for dev and live code, and git! Actually, I knew that all along... but anyway...

I am not sure anyone else will ever experience this... but I replicated it again just for kicks, to make sure I was not dreaming in technicolour the first time it happened. This time around, I was wise enough to really really check my code... and there you go.

meeech commented 13 years ago

hey dave, sorry you had that issue, thanks for being so detailed - will help when I try to repro it tonight.

just to clarify: re: "If you have two shops and set the use="live" directive to point to the live store, " does that mean you manually set use to live, and then used the bundle switch command?

resistorsoftware commented 13 years ago

Hi,

I wanted to be extra sure I was on live...

So I set the config to use="live", and then I used the bundle switch command to be even more sure...

Hope that helps..

On Tue, Jun 28, 2011 at 10:36 AM, meeech < reply@reply.github.com>wrote:

hey dave, sorry you had that issue, thanks for being so detailed - will help when I try to repro it tonight.

just to clarify: re: "If you have two shops and set the use="live" directive to point to the live store, " does that mean you manually set use to live, and then used the bundle switch command?

Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/34#issuecomment-1455899

meeech commented 13 years ago

aye. just fyi - shouldnt have to set it manually and then use switch. if you've set it manually, that should be enough. (the switch command is to make it easy for non-technical people). i'll let you know what i find.

meeech commented 13 years ago

hey - you say you can repro it. when you do the switch using the bundle, can you then re-open the .shopify-tmbundle file, and confirm - does use="live" stil?

(just trying to narrow down what could be causing this)

resistorsoftware commented 13 years ago

Hi,

I checked it out... the config reads the same... use is still set to live...

On, Jun 28, 2011 at 12:09 PM, meeech < reply@reply.github.com>wrote:

hey - you say you can repro it. when you do the switch using the bundle, can you then re-open the .shopify-tmbundle file, and confirm - does use="live" stil?

(just trying to narrow down what could be causing this)

Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/34#issuecomment-1456661

meeech commented 13 years ago

q: is your .shopify-tmbundle under source countrol?

resistorsoftware commented 13 years ago

Hi,

No... last time I tried to use git clone, it bombed out, so I just downloaded a static bundle and used that...

Not sure which version that was, fairly recent anyway... I could grab the date if that would help...

Dave

On Wed, Jul 6, 2011 at 12:16 AM, meeech < reply@reply.github.com>wrote:

q: is your .shopify-tmbundle under source countrol?

Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/34#issuecomment-1509357

meeech commented 13 years ago

sorry - i meant your work. the .shopify-tmbundle us the configuration file in your project dir


Brief cuz sent from ipod

On 2011-07-06, at 8:47 AM, resistorsoftwarereply@reply.github.com wrote:

Hi,

No... last time I tried to use git clone, it bombed out, so I just downloaded a static bundle and used that...

Not sure which version that was, fairly recent anyway... I could grab the date if that would help...

Dave

On Wed, Jul 6, 2011 at 12:16 AM, meeech < reply@reply.github.com>wrote:

q: is your .shopify-tmbundle under source countrol?

Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/34#issuecomment-1509357

Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/34#issuecomment-1511416

resistorsoftware commented 13 years ago

Hi,

Indeed, I list my files and see a .git file.

Dave

On Wed, Jul 6, 2011 at 8:56 AM, meeech < reply@reply.github.com>wrote:

sorry - i meant your work. the .shopify-tmbundle us the configuration file in your project dir


Brief cuz sent from ipod

On 2011-07-06, at 8:47 AM, resistorsoftwarereply@reply.github.com wrote:

Hi,

No... last time I tried to use git clone, it bombed out, so I just downloaded a static bundle and used that...

Not sure which version that was, fairly recent anyway... I could grab the date if that would help...

Dave

On Wed, Jul 6, 2011 at 12:16 AM, meeech < reply@reply.github.com>wrote:

q: is your .shopify-tmbundle under source countrol?

Reply to this email directly or view it on GitHub:

https://github.com/meeech/shopify.tmbundle/issues/34#issuecomment-1509357

Reply to this email directly or view it on GitHub:

https://github.com/meeech/shopify.tmbundle/issues/34#issuecomment-1511416

Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/34#issuecomment-1511469

meeech commented 13 years ago

hey dave, no i mean the actual .shopify-tmbundle file. that is the shop config. so i imagine a scenario where you have that checked into source control, switched shops, then git checkout new branch, which had old config setting.

resistorsoftware commented 13 years ago

Hi,

No... I do not do that. I was relying on one set of theme to rule them all...

Silly me...

On Wed, Jul 6, 2011 at 9:35 AM, meeech < reply@reply.github.com>wrote:

hey dave, no i mean the actual .shopify-tmbundle file. that is the shop config. so i imagine a scenario where you have that checked into source control, switched shops, then git checkout new branch, which had old config setting.

Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/34#issuecomment-1511670

meeech commented 13 years ago

Thats ok. Just wanted to check.

On Wed, Jul 6, 2011 at 9:53 AM, resistorsoftware reply@reply.github.com wrote:

Hi,

No... I do not do that. I was relying on one set of theme to rule them all...

Silly me...

On Wed, Jul 6, 2011 at 9:35 AM, meeech < reply@reply.github.com>wrote:

hey dave, no i mean the actual .shopify-tmbundle file. that is the shop config. so i imagine a scenario where you have that checked into source control, switched shops, then git checkout new branch, which had old config setting.

Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/34#issuecomment-1511670

Reply to this email directly or view it on GitHub: https://github.com/meeech/shopify.tmbundle/issues/34#issuecomment-1511798