I am trying to make my Django project super portable and easy to start/stop. I'm using python's virutal environments along with a pip requirements file to manage python versions and pip packages. One concern I've always wondered about is migrating test data between databases. I'm utilizing:
python manage.py dumpdata > fixtures/data.json
to dump the current test data to a file and I want the next developer to pull this test data when they start their env using:
python manage.py loaddata fixtures/data.txt
So, the overall goal is to create a simple gulp command to do the following:
pull latest git commit, start virtual env, merge test data into database, start server
I couldn't get gulp to start the virtual enviorment but if there is another way I should try and automate this, let me know.
you can use
gulp-shell
to run system command with gulpinstall
gulp-shell
with npm:here is the sample gulpfile.js for your reference:
Run gulp default task