RubyonRails環境構築ガイドを読む
どうしても、
p166のbnculeのところでエラー。
バージョンの違いなのか。。。どうしようもない。
rails ユーザー
sample フォルダ
create database asagao_production
default character set utf8
collate utf8_unicode_ci;
create user 'rails2’@’localhost’ identified by '66186618aa!!’;
grant all on asagao_production.* TO 'rails2’@’localohost’;
quit
/home/rails2/sample/config/database.yml
production:
adapter: mysql2
encoding: urf8
reconnect: false
database: asagao_production
pool: 5
usernamse: rails2
password: xxxxxxxxxxx
socket: /var/lib/mysql/mysql.sock
TeraTermで、
cd ~/sample
RAILS_ENV=production bundle exec rake db:setup
bundle exec rake assets:precompile
bundle exec rails c production
http://www.rubylife.jp/railsinstall/other/index2.html
http://qiita.com/toshiro3/items/b65b2ad744d8f3ecc734
http://white-azalea.hatenablog.jp/entry/2015/07/04/161705
http://kozo002.blogspot.jp/2012/01/rubybundler.html
http://jacoyutorius.com/?p=793
http://qiita.com/a_ishidaaa/items/74de8bdaecd637063c40
sudo yum install mysql-devel
sudo gem intall mysql2
bundle exec rails c production
cd ~/sample
bundle install –path vendor/bundle –without development test
cd ~/sample
RAILS_ENV=production bundle exec rake db:setup
bundle exec rake assets:precompile
sudo update json
http://www.dondari.com/Gem_install_json%E3%81%8C%E5%A4%B1%E6%95%97%E3%81%99%E3%82%8B
yum install ruby-devel gcc make
だめだこりゃ。