On Tue, Oct 26, 2010 at 7:22 PM, Mikhail Kuznetsov <[email protected]> wrote: > Hi, everyone. > > I have a question about couchapp script. It is very useful than you want to > make some "web app". If I clean up files form vendor dir (i don't need them), > delete attachments. Try to push my design doc and get this: > > 2010-10-26 20:40:49 [CRITICAL] {'msg': '', 'status_int': 400, 'response': > <couchapp.client.CouchdbResponse object at 0x1011a3150>} > > Traceback (most recent call last): > File "/Library/Python/2.6/site-packages/couchapp/dispatch.py", line 48, in > dispatch > return _dispatch(args) > File "/Library/Python/2.6/site-packages/couchapp/dispatch.py", line 92, in > _dispatch > return fun(conf, conf.app_dir, *args, **opts) > File "/Library/Python/2.6/site-packages/couchapp/commands.py", line 74, in > push > dbs = conf.get_dbs(dest) > File "/Library/Python/2.6/site-packages/couchapp/config.py", line 149, in > get_dbs > return [Database(dburl) for dburl in dburls] > File "/Library/Python/2.6/site-packages/couchapp/client.py", line 209, in > __init__ > self.res.head() > File "/Library/Python/2.6/site-packages/restkit/resource.py", line 144, in > head > return self.request("HEAD", path=path, headers=headers, **params) > File "/Library/Python/2.6/site-packages/couchapp/client.py", line 128, in > request > raise RequestFailed(str(e)) > RequestFailed: {'msg': '', 'status_int': 400, 'response': > <couchapp.client.CouchdbResponse object at 0x1011a3150>} > > How can I clean up couchapp default project to suite my needs? I want just > editing design document without copy past pain. > > Without couchapp only choice that I got is to copy-past files from my IDE to > design document Save it and finally check results. I look at ice editor from > jchris. It is only viewing, and as I see it don't frozen on May 2010. > > Maybe some maven plugins or something else can be done to automate design > documents development and maintain? > -- > Sincerely yours, > Mikhail Kuznetsov > > >
The error isn't due to the file you deleted . Here it's couchdb saying request is bad (error 400) . How looks your folder ? Also you can create app templates to fill your needs: couchapp generate --template=mytemplate where mytemplates is a folder in ~/.couchapp/templates/ - benoît
