1. RAILS_ENV=production rails s启动服务器 2. RAILS_ENV=production rails generate controller ProductionArray 3. RAILS_ENV=production rails generate migratio Read More
posted @ 2016-02-01 15:05 Sophiawow Views(242) Comments(0) Diggs(0) Edit
在执行rails 命令时出现: diudiugirl@DIUs:~/ashelf$ rails s /home/diudiugirl/.rvm/gems/ruby-1.9.3-p545/gems/json-1.8.0/lib/json/common.rb:67: [BUG] Segmentation Read More
posted @ 2016-02-01 15:00 Sophiawow Views(525) Comments(0) Diggs(0) Edit
在执行rails s时出现“`block in replace_gem': Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter`”错误: diudiugirl@DIUs:/var/www/ashelf Read More
posted @ 2016-02-01 11:28 Sophiawow Views(1095) Comments(0) Diggs(0) Edit
在运行 bundle install时遇到下面问题: diudiugirl@DIUs:/var/www/ashelf$ bundle install Fetching gem metadata from https://ruby.taobao.org/........... Fetching ver Read More
posted @ 2016-02-01 11:18 Sophiawow Views(3060) Comments(0) Diggs(0) Edit
diudiugirl@DIUs:/var/www/ashelf$ RAILS_ENV=production rails s Usage: rails new APP_PATH [options] Options: -r, [--ruby=PATH] # Path to the Ruby binary Read More
posted @ 2016-02-01 11:15 Sophiawow Views(555) Comments(0) Diggs(0) Edit