Awesome
recs-seem-mono-container
Getting started
It runs on Linux environment.
git clone https://github.com/micro-service-lab/recs-seem-mono-container.git
cd recs-seem-mono-container
aqua policy allow "${PWD}/aqua-policy.yaml"
aqua i -l
- devで
too many open files
が出た場合、ホスト上で以下を実行。
echo "fs.inotify.max_user_watches = 524288" >> /etc/sysctl.conf
echo "fs.inotify.max_user_instances = 256" >> /etc/sysctl.conf
sysctl -p
mageコマンド
-
コンテナ操作
- up
mage app:up
- down
mage app:down
- ps
mage app:ps
- log
mage app:log {{サービス名}}
- clean
mage app:clean
- bash
mage app:bash {{サービス名}}
- migrate
mage app:migrate
- rollback
mage app:rollback
- seed
mage app:seed
- dev
mage app:dev
- kill
mage app:kill
- serve
mage app:serve
-
マイグレーションファイル生成
mage generate:migration {{ファイル名}}
- 使用例
mage generate:migration create_m_mime_types_table