mysql - How to tell heroku to use rails 3 and ruby 1.9.2 for a newly created app? -


i created new app on machine using rvm ruby1.9.2p0 , rails 3.0.1, , did following:

rails new -j -d mysql appname git init git add . git commit heroku create 

and app created. when do:

heroku rake db:create --trace 

i get:

can't connect local mysql server through socket '/var/run/mysqld/mysqld.sock' (2) couldn't create database {"reconnect"=>false, "encoding"=>"utf8", "username"=>"root", "adapter"=>"mysql2", "database"=>"app_production", "pool"=>5, "password"=>nil, "socket"=>"/var/run/mysqld/mysqld.sock"}, charset: utf8, collation: utf8_unicode_ci (in /app) ** invoke db:create (first_time) ** invoke db:load_config (first_time) ** invoke rails_env (first_time) ** execute rails_env ** execute db:load_config ** execute db:create 

and when do: heroku rake db:migrate --trace, trace has lines like:

/app/.bundle/gems/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:590:in 

which shows using ruby 1.8 instead of ruby 1.9.2

how can create database on heroku app , make use ruby 1.9.2p0?

if you've created application on heroku have defaulted 1.8.7 you've found. can specify stack create application on when create app;

heroku create myapp --stack bamboo-mri-1.9.2 

to migrate app 1.9.2 need issue

heroku stack:migrate bamboo-mri-1.9.2 

once migrated need repush application (if remember correctly)


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -