LoginSignup
0
0

More than 3 years have passed since last update.

【EC2】本番環境でgit pull origin masterをしたのにCSSの変更が適用されない際の対処法

Last updated at Posted at 2020-05-29

本番環境でアプリのディレクトリまでいき、下記を実行する。

bundle exec rake assets:precompile RAILS_ENV=production

で、アプリを再起動する。

$  sudo service nginx restart
$  sudo systemctl restart  postgresql
$  ps -ef | grep unicorn | grep -v grep
$  bundle exec unicorn_rails -c /var/www/rails/Portfolio/config/unicorn.conf.rb -D -E production

終了です。

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