りんちゃんの日記

日常を書き留めていきます。

2019-01-01から1年間の記事一覧

RedmineのproductionログにデバックモードでSQLを追加する

RedmineでSQLをログを確認したい場合は デバックモードの設定を追加してproduction.logにSQLを出力するように設定する ■production.rbの編集 # vi /var/lib/redmine/config/environments/production.rb config.log_level = :debug ■production.logの確認 tai…

rails のパスを通す

Railsコマンドが使えない.bash_profileに書き込んでパスを通す 隠しファイルなので、lsだと表示されないのでls -allで確認 # ls -all.bash_profile # vi .bash_profile-----------------------------------------------------------------------------------…

rails エラー「There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError)」と表示されてRails Serverが立ち上がらない

Rails Serverが立ち上がらないエラー内容:There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError) 対策Gemfileに下記を記述して、bundle installコマンドを実行 gem 'uglifier', '>= 1.3.0'gem 'therubyracer', platform…

Redmineのproductionログを確認する

Redmineでinternal Errorなど起きてログを確認したい場合は 下記のコマンドで確認する。 ■production.logの確認 tail -f /var/lib/redmine/log/production.log

gemコマンド

■件数gem list | wc -l qiita.com

Visual Studio Codeをインストールする方法

1. Webページからダウンロードする 2. インストールする Visual Studio CodeとはMicroSoftがwindowsのソフト開発用に作成した無用の開発ツール。「Atom」と同じようなソフトみたいです。 1. Webページからダウンロードする code.visualstudio.com OSの種類を…