This is the website for Refactor.tv. Enjoy.
Note: We are using Ruby 1.9.3 both on Heroku and locally.
Get the source (obviously)
$ git clone https://github.com/refactortv/refactor.tv.git $ cd refactor.tv
We use Postgres locally. If you don't have it already, you'll need to install Postgres. You can do this easily with Homebrew:
$ brew install postgresql
(Be sure and read the caveats after it installs. You must run some additional commands to get it to complete the installation.) You can also use Postgres.app if that's more your thing.
Run the following queries to setup the user in Postgres:
$ psql postgres # CREATE USER refactortv SUPERUSER;\q
Now all you need to do to get going, all you need to is bundle (you'll need to install Bundler if you don't have it with
gem install bundler) and setup the database:
$ bundle install $ rake db:create $ rake db:schema:load
Now you can start the server:
$ bundle exec rails server
The default credentials for the admin area are
passw0rd. These are obviously different on production or if you have environment variables for
To access the admin, go to http://localhost:3000/admin.