erica
erica copied to clipboard
problem with "webstyle" push
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?
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.
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?
Yes, that makes sense.
@ryanramage any fix around?
@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?