erica
erica copied to clipboard
Extend commands to modify config
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
what would do these commands ?
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)
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
?
Yeh I was thinking the same thing, copying git seems sensible (I had the same approach with clone vs pull)
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).
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 :)