[Laravel] プロジェクト作成時の雛形

カテゴリ: composer, Deployer, Laravel, PHP, phpcs

Laravelプロジェクト作成時のテンプレート作成時に実行するコマンド

composer global require laravel/installer

#--------------------------------------------------------
# create prject
#--------------------------------------------------------
laravel new server

#--------------------------------------------------------
# install packages.
#--------------------------------------------------------
pushd server
composer require tymon/jwt-auth
composer require --dev squizlabs/php_codesniffer
popd

#--------------------------------------------------------
# provisioning
#--------------------------------------------------------
mkdir provisioning
mkdir provisioning/local

#--------------------------------------------------------
# deployer
#--------------------------------------------------------
mkdir deployer

pushd deployer
curl -LO https://deployer.org/deployer.phar
mv deployer.phar ./dep
chmod +x ./dep
./dep self-update

./dep init -t Laravel
touch hosts.yml
popd


#--------------------------------------------------------
# CircleCI
#--------------------------------------------------------
mkdir .circleci


# git commit
git init 
git add .
git commit -m 'Initial commit'
こちらもおススメ

コメントを残す

メールアドレスが公開されることはありません。