成果物を紹介したり、記事を書いたりする場所
- VSCode Remote Containers
- windows(WSL2)
- docker
Ubuntuのコンソール
$ git clone https://github.com/Itu-tree/toutou-node.git
$ cd toutounode
$ make local-deploy
$ npm outdated
$ npm update
https://zenn.dev/toutou/scraps/9460ae2702f810
blog_phpコンテナ内で
/var/www/html $ composer update
サーバーのコンソール
$ git clone https://github.com/Itu-tree/toutou-node.git
$ cd toutounode
$ make prod-deploy
サーバーのコンソールからコンテナに入る
$ cd toutounode/blog
$ docker-compose exec php bash
コンテナ内で以下のコマンドを入力
# php artisan tinker
>>> App\User::firstOrCreate(['name'=>'admin','email'=>'admin@gmail.com','password'=>Hash::make('password')])