Google Compute Engin上にCentOS7で本番環境を構築中なのですが
ruby
1 rake db:migrate RAILS_ENV=production
が通らず
ails Error: Unable to access log file. Please ensure that /var/www/app/log/production.log exists and is writable (ie, make it writable for user and group: chmod 0664 /var/www/app/log/production.log). The log level has been raised to WARN and the output directed to STDERR until the problem is fixed. rake aborted! Mysql2::Error: Access denied for user 'root'@'localhost' (using password: YES) Tasks: TOP => db:migrate
とのエラーが出てしまいます。
どのようにすれば通るようになるでしょうか?
chmod 0664 /var/www/app/log/production.log
を実行すると
chmod: changing permissions of ‘/var/www/api/log/production.log’: Operation not permitted
と変更ができないようです。
皆様、よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。