Skip to content

Instantly share code, notes, and snippets.

@tuki0918
Last active July 3, 2016 21:54
Show Gist options
  • Save tuki0918/6e64e438418b2ab90f99a5e3934c6ef5 to your computer and use it in GitHub Desktop.
Save tuki0918/6e64e438418b2ab90f99a5e3934c6ef5 to your computer and use it in GitHub Desktop.
```
sudo update-locale LC_CTYPE=en_US.UTF-8
sudo apt-get install sendmail
php -r "mail('***[email protected]', 'test', date('Y-m-d H:i:s') . ' メール送信テスト');"
'address' => env('MAIL_FROM_ADDRESS', null),
'name' => env('MAIL_FROM_NAME', null)
php artisan tinker
Mail::raw('Test Mail', function($message) { $message->to('[email protected]')->subject('test'); });
dns spf
```
    1  sudo su -
    3  apt-get update
    6  apt-get install php5
    7  php -v
    9  apt-get install nginx
   10  apt-get install php5-fpm
   13  sudo apt-get install sysv-rc-conf
   14  sysv-rc-conf --list
   15  sysv-rc-conf nginx on
   16  sysv-rc-conf --list
   17  sysv-rc-conf php5-fpm on
   18  sysv-rc-conf --list
   19  sysv-rc-conf apache2 off
   20  sysv-rc-conf --list
   21  history
```
if ($http_x_forwarded_proto != https) {
return 301 https://$host$request_uri;
}
```
sudo chown -R www-data:www-data /path/to/your/root/directory
sudo find app/storage -type d -exec chmod 2775 {} \;
sudo find app/storage -type f -exec chmod 0664 {} \;
php artisan key:generate --show

* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment