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

Multi-Shop config confusion #34

Open
resistorsoftware opened this issue Jun 28, 2011 · 12 comments
Open

Multi-Shop config confusion #34

resistorsoftware opened this issue Jun 28, 2011 · 12 comments

Comments

@resistorsoftware
Copy link

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
Copy link
Owner

meeech commented Jun 28, 2011

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
Copy link
Author

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:
#34 (comment)

@meeech
Copy link
Owner

meeech commented Jun 28, 2011

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
Copy link
Owner

meeech commented Jun 28, 2011

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
Copy link
Author

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:
#34 (comment)

@meeech
Copy link
Owner

meeech commented Jul 6, 2011

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

@resistorsoftware
Copy link
Author

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:
#34 (comment)

@meeech
Copy link
Owner

meeech commented Jul 6, 2011

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:
#34 (comment)

Reply to this email directly or view it on GitHub:
#34 (comment)

@resistorsoftware
Copy link
Author

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:

#34 (comment)

Reply to this email directly or view it on GitHub:

#34 (comment)

Reply to this email directly or view it on GitHub:
#34 (comment)

@meeech
Copy link
Owner

meeech commented Jul 6, 2011

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
Copy link
Author

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:
#34 (comment)

@meeech
Copy link
Owner

meeech commented Jul 6, 2011

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:
#34 (comment)

Reply to this email directly or view it on GitHub:
#34 (comment)

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

2 participants