erica icon indicating copy to clipboard operation
erica copied to clipboard

Extend commands to modify config

Open daleharvey opened this issue 13 years ago • 6 comments

erica init mobilefuton
erica init http://127.0.0.1:5984/mobilefuton

erica init android http://127.0.0.1:5985/mobilefuton

erica set android http://127.0.0.1:5986/mobilefuton

daleharvey avatar Nov 23 '11 05:11 daleharvey

what would do these commands ?

benoitc avatar Nov 23 '11 06:11 benoitc

it would write to .couchapprc with the env configurations, I hate actually having to open that file to define a new place to push to (also makes out lives easier to document actions if the action is just a command)

daleharvey avatar Nov 23 '11 06:11 daleharvey

oh ok, commands to add config settings. Why not doing it ala git with a config command ?

erica config mobilefuton http://127.0.0.1:5984/mobilefuton

erica config env.somedb.db = http://127.0.0.1:5984/somedb

?

benoitc avatar Nov 23 '11 06:11 benoitc

Yeh I was thinking the same thing, copying git seems sensible (I had the same approach with clone vs pull)

daleharvey avatar Nov 23 '11 06:11 daleharvey

What would hooks be able to do?

I'd like to see a feature where for a production deployment, erica would run some script to minify & combine js and css files in couchapps (changing the .html if needed as well).

gdamjan avatar Jan 06 '12 15:01 gdamjan

This exactly the point of hooks, once you set a hook on some op, (pre/post push etc ...) you will be abble to interact with the code. The new erica version is planned for the end of next week, with this feature or more. Expect some initial commit on monday :)

benoitc avatar Jan 07 '12 13:01 benoitc