- Fork this project by clicking the "Fork" button in GitHub
- Download the source:
git clone git@github.com:your-github-id/basic-usersite.git
(replace your-github-id) - Add the master project as an upstream remote (this is where you'll send pull requests)
cd basic-usersite && git remote add upstream git@github.com:appoxy/basic-usersite.git - Make sure everything is up to date:
git fetch upstream - Install rvm (see: http://beginrescueend.com/rvm/install/ for more detail)
bash < <(curl -s https://rvm.beginrescueend.com/install/rvm ) - Install the required Ruby version (ruby 1.9.3-p0)
rvm install ruby-1.9.3-p0
(For Mac OS X Lion, you may needrvm install 1.9.3 --with-gcc=clangper this post http://stackoverflow.com/questions/8032824/cant-install-ruby-under-lion-with-rvm-gcc-issues) - Install bundler
gem install bundler - Install foreman
gem install foreman - Bundle it up
bundle
- Start app:
foreman start - Load app in browser:
localhost:5000
(More info is here http://michaelvanrooijen.com/articles/2011/06/08-managing-and-monitoring-your-ruby-application-with-foreman-and-upstart/)
-
Open console in project directory
% sqlite3 basic-usersite.sqlite3
SQLite version 3.7.7 2011-11-11 12:34:56
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>update users set usertype='admin';
sqlite>.quit