0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Nginxで設定が終わったら次にやること

Posted at

Nginxの権限を変更しよう。

設定が完了したら、POSTメソッドでもエラーが出ないようにするために、下記のコマンドも実行しよう。

[ec2-user@ip-172-31-25-189 ~]$ cd /var/lib
[ec2-user@ip-172-31-25-189 lib]$ sudo chmod -R 775 nginx 

以下のコマンドを実行して、Nginx設定ファイルを起動して再読み込みしよう。

[ec2-user@ip-172-31-25-189 lib]$ cd ~
[ec2-user@ip-172-31-25-189 ~]$ sudo systemctl start nginx
[ec2-user@ip-172-31-25-189 ~]$ sudo systemctl reload nginx

Nginxの設定を変えたので、unicornの設定もそれに伴って変更しておく。

config/unicorn.rb
listen 3000を下記に変更。

listen "#{app_path}/tmp/sockets/unicorn.sock"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?