2020-01-16から1日間の記事一覧

(mysql )接続方法

備忘録mysql -u (マスタユーザ名) -p -h (エンドポイント)「エンドポイント」は、RDSメニューで確認 $ mysql -u root -p -h rds-mysql-server.xxx.ap-northeast-1.rds.amazonaws.com

(Rails production Puma)強制終了とサーバ立ち上げ

$ pkill -9 -f puma pumaの強制終了コマンド $ rails s -e production でサーバ立ち上げproduction 環境では Railsコマンドの後に RAILS_ENV=production を追加する必要あり仮想環境では $ rails s -b 0.0.0.0

(AWS) ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit`

bundle exec rails assets:precompile RAILS_ENV=production 本番環境でコードをコンパイルしたい場合 ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit` の表記がでた場合 $ ls appl…