-
Ruby 1.9.2
-
Install gems activerecord, sinatra, haml, sqlite3-ruby
-
Install gem mysql*
-
Run command: rake db_up
-
Runi command: rackup config.ru
-
Run app at: localhost:9292
If using bundler,
1. edit Gemfile to add line for mysql 2. export ARCHFLAGS="-arch x86_64" 3. bundle config build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config 4. bundle install
If not using bundler,
env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config