質問編集履歴
3
GooglePlatFormの設定を追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -173,3 +173,113 @@
|
|
173
173
|
curl -sL https://rpm.nodesource.com/setup_13.x | sudo bash -
|
174
174
|
|
175
175
|
```
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
.envファイル
|
180
|
+
|
181
|
+
```ここに言語を入力
|
182
|
+
|
183
|
+
APP_NAME=Laravel
|
184
|
+
|
185
|
+
APP_ENV=production
|
186
|
+
|
187
|
+
APP_KEY=base64:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
188
|
+
|
189
|
+
APP_DEBUG=false
|
190
|
+
|
191
|
+
APP_URL=http://54.150.158.72 ここをhttps://xxxxxxxx.comにしたほうがいいのか?
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
LOG_CHANNEL=stack
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
DB_CONNECTION=pgsql
|
200
|
+
|
201
|
+
DB_HOST=laravel-ci.xxxxxxxxxxxxxxxxxxxxxxxx
|
202
|
+
|
203
|
+
DB_PORT=5432
|
204
|
+
|
205
|
+
DB_DATABASE=larasns
|
206
|
+
|
207
|
+
DB_USERNAME=postgres
|
208
|
+
|
209
|
+
DB_PASSWORD=xxxxxxxxxxxxxxxxxxxx
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
BROADCAST_DRIVER=log
|
214
|
+
|
215
|
+
CACHE_DRIVER=file
|
216
|
+
|
217
|
+
QUEUE_CONNECTION=sync
|
218
|
+
|
219
|
+
SESSION_DRIVER=cookie
|
220
|
+
|
221
|
+
SESSION_LIFETIME=120
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
REDIS_HOST=127.0.0.1
|
226
|
+
|
227
|
+
REDIS_PASSWORD=null
|
228
|
+
|
229
|
+
REDIS_PORT=6379
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
GOOGLE_CLIENT_ID=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
234
|
+
|
235
|
+
GOOGLE_CLIENT_SECRET=xxxxxxxxxxxxxxxxxxxx
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
MAIL_DRIVER=smtp
|
240
|
+
|
241
|
+
MAIL_HOST=smtp.mailtrap.io
|
242
|
+
|
243
|
+
MAIL_PORT=2525
|
244
|
+
|
245
|
+
MAIL_USERNAME=null
|
246
|
+
|
247
|
+
MAIL_PASSWORD=null
|
248
|
+
|
249
|
+
MAIL_ENCRYPTION=null
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
AWS_ACCESS_KEY_ID=
|
254
|
+
|
255
|
+
AWS_SECRET_ACCESS_KEY=
|
256
|
+
|
257
|
+
AWS_DEFAULT_REGION=us-east-1
|
258
|
+
|
259
|
+
AWS_BUCKET=
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
PUSHER_APP_ID=
|
264
|
+
|
265
|
+
PUSHER_APP_KEY=
|
266
|
+
|
267
|
+
PUSHER_APP_SECRET=
|
268
|
+
|
269
|
+
PUSHER_APP_CLUSTER=mt1
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
|
274
|
+
|
275
|
+
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
|
276
|
+
|
277
|
+
```
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
GooglePlatFormの設定
|
282
|
+
|
283
|
+
![イメージ説明](ba5c3c971ca8d9f9adbd1d643ed78ad3.png)
|
284
|
+
|
285
|
+
![イメージ説明](0c453d6d184e0b678457d1512359f013.png)
|
2
各種EC2上でインストールしたものを追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -75,3 +75,101 @@
|
|
75
75
|
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"
|
76
76
|
|
77
77
|
```
|
78
|
+
|
79
|
+
**追記2**
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
Composerをインストール
|
84
|
+
|
85
|
+
```ここに言語を入力
|
86
|
+
|
87
|
+
sudo curl -sS https://getcomposer.org/installer | php
|
88
|
+
|
89
|
+
```
|
90
|
+
|
91
|
+
**Composer version 1.10.10 2020-08-03 11:35:19**
|
92
|
+
|
93
|
+
php-mbstringとphp-xmlのインストール
|
94
|
+
|
95
|
+
```ここに言語を入力
|
96
|
+
|
97
|
+
sudo yum install php-mbstring php-xml -y
|
98
|
+
|
99
|
+
```
|
100
|
+
|
101
|
+
PHP関連パッケージのインストール
|
102
|
+
|
103
|
+
```ここに言語を入力
|
104
|
+
|
105
|
+
composer install --no-dev --prefer-dist
|
106
|
+
|
107
|
+
```
|
108
|
+
|
109
|
+
composer.json
|
110
|
+
|
111
|
+
```ここに言語を入力
|
112
|
+
|
113
|
+
"require": {
|
114
|
+
|
115
|
+
"php": "^7.2",
|
116
|
+
|
117
|
+
"fideloper/proxy": "^4.0",
|
118
|
+
|
119
|
+
"laravel/framework": "^6.2",
|
120
|
+
|
121
|
+
"laravel/socialite": "^4.4",
|
122
|
+
|
123
|
+
"laravel/tinker": "^2.0"
|
124
|
+
|
125
|
+
},
|
126
|
+
|
127
|
+
"require-dev": {
|
128
|
+
|
129
|
+
"facade/ignition": "^1.4",
|
130
|
+
|
131
|
+
"fzaninotto/faker": "^1.4",
|
132
|
+
|
133
|
+
"mockery/mockery": "^1.0",
|
134
|
+
|
135
|
+
"nunomaduro/collision": "^3.0",
|
136
|
+
|
137
|
+
"phpunit/phpunit": "^8.0"
|
138
|
+
|
139
|
+
},
|
140
|
+
|
141
|
+
```
|
142
|
+
|
143
|
+
Laravelのアプリケーションキー生成
|
144
|
+
|
145
|
+
```ここに言語を入力
|
146
|
+
|
147
|
+
$ php artisan key:generate
|
148
|
+
|
149
|
+
```
|
150
|
+
|
151
|
+
githubからコピーした.envファイルを編集
|
152
|
+
|
153
|
+
```ここに言語を入力
|
154
|
+
|
155
|
+
APP_NAME=Laravel
|
156
|
+
|
157
|
+
APP_ENV=production Localをproductionに変更
|
158
|
+
|
159
|
+
APP_KEY=base64:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx=
|
160
|
+
|
161
|
+
APP_DEBUG=false trueをfalseに変更
|
162
|
+
|
163
|
+
APP_URL=http://xxx.xxx.xxx.xxx localhostをEC2のパブリックIPアドレスに変更
|
164
|
+
|
165
|
+
# 略
|
166
|
+
|
167
|
+
```
|
168
|
+
|
169
|
+
Node.jsインストール
|
170
|
+
|
171
|
+
```ここに言語を入力
|
172
|
+
|
173
|
+
curl -sL https://rpm.nodesource.com/setup_13.x | sudo bash -
|
174
|
+
|
175
|
+
```
|
1
Nginxのエラーを記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -63,3 +63,15 @@
|
|
63
63
|
|
64
64
|
|
65
65
|
EC2上でmigrate等をしないといけないのでしょうか?よろしくお願いします。
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
**追記**
|
70
|
+
|
71
|
+
nginxのエラーログ
|
72
|
+
|
73
|
+
```ここに言語を入力
|
74
|
+
|
75
|
+
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"
|
76
|
+
|
77
|
+
```
|