If you are like me and you hate running a lot of services, particularly databases in the background that silently consumes your machine resources without your consent, then you might find this project useful.
This project is a right now, just a simple Makefile with pre-configured
command line calls so you can start and stop several common services at once
with ease via make
and can be sure that all data created by those services
is contained inside the folder which means they can be cleaned by simply running
git-clean
.
Right now it only runs a few services that I needed. I will add more in the future as I needs them or if someone sends me a pull request :)
You needs to run this command once for each service that requires initializing
and also if you have just ran git-clean
for the service.
$ make pg-init mysql-init redis-init
NOTE: To properly initializes and run PostgreSQL locally on OS X you may need to
increase your system's kern.sysv.shmall
value to at least 4096. Read
Increasing Shared Memory for Postgres on OS X
for more info.
For example, to start PostgreSQL, Redis and Mailcatcher all at once, just run:
$ make pg mysql redis
Stopping services is just as easy:
$ make pg-stop mysql-stop redis-stop
To clean all data from services, just run git clean -xdf
on any related folder.
For example, to completely wipe your PostgreSQL clean and start fresh, just do this:
$ git clean -xdf pg/
If you are not sure what files git
will delete from your system, just run a
what-if mode once and git-clean
will print out files that it would delete:
$ git clean -xdn pg/
WTFPL (http://www.wtfpl.net/txt/copying/)
Just ping me @chakrit on Twitter or open a new GitHub issue
PRs also accepted.
- CouchDb
- MongoDb
Other non-database services:
- Mailcatcher
- Stunnel