質問編集履歴
3
GooglePlatFormの設定を追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -85,4 +85,59 @@
|
|
85
85
|
Node.jsインストール
|
86
86
|
```ここに言語を入力
|
87
87
|
curl -sL https://rpm.nodesource.com/setup_13.x | sudo bash -
|
88
|
-
```
|
88
|
+
```
|
89
|
+
|
90
|
+
.envファイル
|
91
|
+
```ここに言語を入力
|
92
|
+
APP_NAME=Laravel
|
93
|
+
APP_ENV=production
|
94
|
+
APP_KEY=base64:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
95
|
+
APP_DEBUG=false
|
96
|
+
APP_URL=http://54.150.158.72 ここをhttps://xxxxxxxx.comにしたほうがいいのか?
|
97
|
+
|
98
|
+
LOG_CHANNEL=stack
|
99
|
+
|
100
|
+
DB_CONNECTION=pgsql
|
101
|
+
DB_HOST=laravel-ci.xxxxxxxxxxxxxxxxxxxxxxxx
|
102
|
+
DB_PORT=5432
|
103
|
+
DB_DATABASE=larasns
|
104
|
+
DB_USERNAME=postgres
|
105
|
+
DB_PASSWORD=xxxxxxxxxxxxxxxxxxxx
|
106
|
+
|
107
|
+
BROADCAST_DRIVER=log
|
108
|
+
CACHE_DRIVER=file
|
109
|
+
QUEUE_CONNECTION=sync
|
110
|
+
SESSION_DRIVER=cookie
|
111
|
+
SESSION_LIFETIME=120
|
112
|
+
|
113
|
+
REDIS_HOST=127.0.0.1
|
114
|
+
REDIS_PASSWORD=null
|
115
|
+
REDIS_PORT=6379
|
116
|
+
|
117
|
+
GOOGLE_CLIENT_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
118
|
+
GOOGLE_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxx
|
119
|
+
|
120
|
+
MAIL_DRIVER=smtp
|
121
|
+
MAIL_HOST=smtp.mailtrap.io
|
122
|
+
MAIL_PORT=2525
|
123
|
+
MAIL_USERNAME=null
|
124
|
+
MAIL_PASSWORD=null
|
125
|
+
MAIL_ENCRYPTION=null
|
126
|
+
|
127
|
+
AWS_ACCESS_KEY_ID=
|
128
|
+
AWS_SECRET_ACCESS_KEY=
|
129
|
+
AWS_DEFAULT_REGION=us-east-1
|
130
|
+
AWS_BUCKET=
|
131
|
+
|
132
|
+
PUSHER_APP_ID=
|
133
|
+
PUSHER_APP_KEY=
|
134
|
+
PUSHER_APP_SECRET=
|
135
|
+
PUSHER_APP_CLUSTER=mt1
|
136
|
+
|
137
|
+
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
|
138
|
+
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
|
139
|
+
```
|
140
|
+
|
141
|
+
GooglePlatFormの設定
|
142
|
+

|
143
|
+

|
2
各種EC2上でインストールしたものを追記しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -36,4 +36,53 @@
|
|
36
36
|
nginxのエラーログ
|
37
37
|
```ここに言語を入力
|
38
38
|
2020/09/26 07:14:57 [error] 6389#0: *36873 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.18.3.206, server: xxxxxx.com, request: "POST /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.150.25.126"
|
39
|
+
```
|
40
|
+
**追記2**
|
41
|
+
|
42
|
+
Composerをインストール
|
43
|
+
```ここに言語を入力
|
44
|
+
sudo curl -sS https://getcomposer.org/installer | php
|
45
|
+
```
|
46
|
+
**Composer version 1.10.10 2020-08-03 11:35:19**
|
47
|
+
php-mbstringとphp-xmlのインストール
|
48
|
+
```ここに言語を入力
|
49
|
+
sudo yum install php-mbstring php-xml -y
|
50
|
+
```
|
51
|
+
PHP関連パッケージのインストール
|
52
|
+
```ここに言語を入力
|
53
|
+
composer install --no-dev --prefer-dist
|
54
|
+
```
|
55
|
+
composer.json
|
56
|
+
```ここに言語を入力
|
57
|
+
"require": {
|
58
|
+
"php": "^7.2",
|
59
|
+
"fideloper/proxy": "^4.0",
|
60
|
+
"laravel/framework": "^6.2",
|
61
|
+
"laravel/socialite": "^4.4",
|
62
|
+
"laravel/tinker": "^2.0"
|
63
|
+
},
|
64
|
+
"require-dev": {
|
65
|
+
"facade/ignition": "^1.4",
|
66
|
+
"fzaninotto/faker": "^1.4",
|
67
|
+
"mockery/mockery": "^1.0",
|
68
|
+
"nunomaduro/collision": "^3.0",
|
69
|
+
"phpunit/phpunit": "^8.0"
|
70
|
+
},
|
71
|
+
```
|
72
|
+
Laravelのアプリケーションキー生成
|
73
|
+
```ここに言語を入力
|
74
|
+
$ php artisan key:generate
|
75
|
+
```
|
76
|
+
githubからコピーした.envファイルを編集
|
77
|
+
```ここに言語を入力
|
78
|
+
APP_NAME=Laravel
|
79
|
+
APP_ENV=production Localをproductionに変更
|
80
|
+
APP_KEY=base64:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
|
81
|
+
APP_DEBUG=false trueをfalseに変更
|
82
|
+
APP_URL=http://xxx.xxx.xxx.xxx localhostをEC2のパブリックIPアドレスに変更
|
83
|
+
# 略
|
84
|
+
```
|
85
|
+
Node.jsインストール
|
86
|
+
```ここに言語を入力
|
87
|
+
curl -sL https://rpm.nodesource.com/setup_13.x | sudo bash -
|
39
88
|
```
|
1
Nginxのエラーを記載
title
CHANGED
File without changes
|
body
CHANGED
@@ -30,4 +30,10 @@
|
|
30
30
|
```
|
31
31
|
結果…変わらず。
|
32
32
|
|
33
|
-
EC2上でmigrate等をしないといけないのでしょうか?よろしくお願いします。
|
33
|
+
EC2上でmigrate等をしないといけないのでしょうか?よろしくお願いします。
|
34
|
+
|
35
|
+
**追記**
|
36
|
+
nginxのエラーログ
|
37
|
+
```ここに言語を入力
|
38
|
+
2020/09/26 07:14:57 [error] 6389#0: *36873 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 172.18.3.206, server: xxxxxx.com, request: "POST /vendor/phpunit/phpunit/src/Util/PHP/eval-stdin.php HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "54.150.25.126"
|
39
|
+
```
|