javascript-boilerplate icon indicating copy to clipboard operation
javascript-boilerplate copied to clipboard

[RFC] Add createdb and dropdb recipes

Open brikou opened this issue 8 years ago • 6 comments

Storing db configuration in environment variable adviced to follow the twelve-factor app methodology. ~~The drawback is that it requires direnv... but it is a really usefull tool used on my every projects.~~ direnv makes it easier but a simple . .envrc do the job.

brikou avatar Mar 02 '16 15:03 brikou

Why not, it could be useful indeed. Where are the createdb and dropdb commands ?

djhi avatar Mar 02 '16 15:03 djhi

createdb and dropdb are psql commands

brikou avatar Mar 02 '16 15:03 brikou

It allows also to simplify the supervisor configuration too as the environment line would be useless. This same file could also be reference for cron or whatever...

@fzaninotto @Kmaschta @alexisjanvier what do you think?

brikou avatar Mar 02 '16 15:03 brikou

I'm clearly for the usage of env variables :+1:

Kmaschta avatar Mar 02 '16 15:03 Kmaschta

direnv is really nice as autoloaded when you enter a directory, but envdir is much usable for admin task (cron, makefile, supervisor)... I'm thinking about having the best of 2 worlds... If anyone as suggestions...

brikou avatar Mar 03 '16 08:03 brikou

I've rebased the branch, if you want to take a look @brikou

Kmaschta avatar Oct 29 '16 20:10 Kmaschta