bigcartel / dugway

Easily build and test Big Cartel themes.
https://developers.bigcartel.com/api/themes
MIT License
149 stars 22 forks source link

Access live data from a store in maintenance mode #92

Open randomgs opened 11 years ago

randomgs commented 11 years ago

Error thrown on dugway server startup while using data from a store in maintenance mode:

/Users/user/.rvm/gems/ruby-2.0.0-p247/gems/dugway/0.8.2/lib/dugway/store.rb:124:in `locale': undefined method `[]' for nil:NilClass (NoMethodError)

Could the terminal ask for a password instead?

iwednesday commented 11 years ago

i just came across the same error - works fine as long as the store isn't in maintenance mode before you start it. It can be in maintenance mode after and will work fine

mattwigham commented 11 years ago

@iwednesday since Dugway uses the public Big Cartel API it won't work for stores under maintenance. Many stores go under maintenance to launch new products, and exposing them in the API/Dugway wouldn't be what they want. The reason it works to put the store in maintenance after is because Dugway caches the data each time the server starts, but it wouldn't work the next time you restarted the Dugway server.

Anyway, we discussed this more in @randomgs previous issue, which is why he made this new feature request to access a store in maintenance mode by passing a password.