Last active
April 2, 2019 07:26
-
-
Save KMR-zoar/60c76f8749c53551290fd7a5ee5c67bc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Tasking Manager と PostgreSQL のコンテナを停止して待機状態のコンテナを削除します | |
$ docker-compose down | |
//PostgreSQL コンテナ用に保持されているデータを削除します | |
$ docker volume rm tasking-manager_pgdata | |
//Tasking Manager と PostgreSQL のコンテナを立ち上げます | |
$ docker-compose up -d | |
//Tasking Manager コンテナで bash を起動して標準入出力に接続します | |
$ docker exec -it tasking-manager_app_1 bash | |
//コンテナでデータベースの初期化を行います | |
container# python manage.py db upgrade | |
//exit で bash プロセスを抜けられます | |
container# exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment