erica icon indicating copy to clipboard operation
erica copied to clipboard

problem with "webstyle" push

Open gr2m opened this issue 12 years ago • 5 comments
trafficstars

This is a follow up ticket to #50

It works nicely do deply a static HTML app with erica push appname. But I need to set the name of the design doc, is that possible?

Here's what I got

$ erica push appname
==> www (push)
==> Successfully pushed. You can browse it at: http://127.0.0.1:5984/appname/_design/www/index.html

here is what I want

  $ erica push appname
  ==> www (push)
- ==> Successfully pushed. You can browse it at: http://127.0.0.1:5984/appname/_design/www/index.html
+ ==> Successfully pushed. You can browse it at: http://127.0.0.1:5984/appname/_design/appname/index.html

when I add a _id file and run erica push appname, I get

$ echo "_design/appname" >> _id 
$ erica pushappname
==> www (push)
ERROR: push failed while processing /path/to/www: {'EXIT',{ucs,{bad_utf8_character_code}}}

any idea?

gr2m avatar Mar 26 '13 16:03 gr2m

Yeah, webstyle currently gets the id from the folder one up from where you run it. So I assume the folder you are running in is www. You can rename your parent folder...

Also, you should be able to add an _id in the _ddoc folder. But I checked and that is not working. So I will add a patch for that.

ryanramage avatar Mar 26 '13 17:03 ryanramage

Thanks for the quick response & for looking into it!

Any chance you could take the target name for the design doc instead of the folder? So in this case, appname instead of www?

gr2m avatar Mar 26 '13 17:03 gr2m

Yes, that makes sense.

ryanramage avatar Mar 26 '13 17:03 ryanramage

@ryanramage any fix around?

benoitc avatar May 10 '13 09:05 benoitc

@ryanramage I'm also (still) getting the same error as above https://github.com/benoitc/erica/issues/51#issue-12458111

ERROR: push failed while processing /path/to/www: {'EXIT',{ucs,{bad_utf8_character_code}}}

Is there a fix for this?

NeuroInfoCore avatar May 20 '14 19:05 NeuroInfoCore