Skip to content

Instantly share code, notes, and snippets.

@noboo
Created July 27, 2019 11:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noboo/617a2b7344353d5ba78f1bc2cfe38606 to your computer and use it in GitHub Desktop.
Save noboo/617a2b7344353d5ba78f1bc2cfe38606 to your computer and use it in GitHub Desktop.
laravelの設定

laravelの設定

yarn run dev
yarn run production

データベースをsqliteに

DB_CONNECTION=sqlite

databaseフォルダにデータファイルを作る

database.sqlite

config/app.php

'timezone' => 'Asia/Tokyo'
'locale' => 'ja',

laravel5.5インストール

php7.1にする

sudo yum install --enablerepo=remi-php71 php

データベース確認

sqlite3 --version

composerインストール

https://getcomposer.org/
php composer.phar create-project --prefer-dist laravel/laravel blog

laravelヴァージョン確認

php artisan --version

テスト環境起動

php artisan serve --host 192.168.33.10

ストップ

^c

終了し忘れたら一覧表示

一覧表示

ps

終了

kill -9 1904

-9は強制終了オプション 1904はPID

オートローダを再生成

php /home/vagrant/laravel/composer.phar dump-autoload`
``
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment