- Start
boot2docker. - Run
./build-containers.sh. - Run
./recreate-database.sh. Important: running this script will remove previous postgres data. - Run
./run-containers.sh. - Add PyCharm python interpreter:
- host:
192.168.59.103 - port:
2222 - username:
root - password:
codepot - python interpreter path:
/usr/local/bin/python
- Add run configuration:
- host:
0.0.0.0 - port:
8080 - working directory:
/app - path mappings
<your absolute path to project root>=/app
KNOWN ISSUES:
- Postgres data is persistent only in boot2docker VM. Moving it to OsX host would be awesome but it requires some fixes with permissions... :( More info here.
- Run
docker-compose build. - Run
docker-compose up -d.
- Run
docker psand find instance name you are looking for. - Run
docker exec -it <instance name> python manage.py migrate