wget -qO- https://toolbelt.heroku.com/install.sh | sh
echo "deb http://toolbelt.heroku.com/ubuntu ./" > /etc/apt/sources.list.d/heroku.list
wget -O- https://toolbelt.heroku.com/apt/release.key | apt-key add -
apt-get update
apt-get install -y heroku-toolbelt
"The following NEW packages will be installed: foreman heroku heroku-toolbelt"
(alternative: gem install heroku foreman)
heroku login
sudo apt-get update sudo apt-get install ruby1.9.3 //yay for ubuntu 12.04
gem install rails
ERROR: Error installing rails: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
creating Makefile
make sh: 1: make: not found
SOLUTION: apt-get install make
rails new myapp
Installing sqlite3 (1.3.6) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
checking for sqlite3.h... no
...
An error occurred while installing sqlite3 (1.3.6), and Bundler cannot continue.
Make sure that gem install sqlite3 -v '1.3.6'
succeeds before bundling.
OR
vi myapps/Gemfile replace 'sqlite3' with 'pg' //postgres sql
cd myapps bundle install
same error of course
Make sure that gem install pg -v '0.14.1'
succeeds before bundling
OF COURSE FOLLOWING THE MESSAGE ABOVE DOESN'T QUITE WORK, INSTEAD:
sudo apt-get install postgresql sudo apt-get install libpq-dev gem install pg
OR
rails new myapp --skip-activerecord //no database?
cd myapps
git init git add . git commit -m "rails new myapp (postgres sql)"
heroku create http://arcane-wildwood-2874.herokuapp.com/ | git@heroku.com:arcane-wildwood-2874.git "Git remote heroku added"
git push heroku master