Skip to content
My blog (currently written in Rails) http://samsoff.es
Ruby CoffeeScript
Find file
Pull request Compare This branch is 1 commit ahead, 202 commits behind soffes:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
db
lib
public
script
spec
vendor/assets/javascripts
.gitignore
.metrics
.rbenv-version
Gemfile
Gemfile.lock
Guardfile
Procfile
Rakefile
Readme.markdown
config.ru

Readme.markdown

samsoff.es

This is my new blog in Rails 3.1. I moved my blog to Jekyll a few months ago and really missed playing with a Rails app, so I'm moving it back and starting from scratch.

Running Locally

Note: I am using Ruby 1.9.2 both on Heroku and locally.

Get the source (obviously)

$ git clone git://github.com/samsoffes/samsoff.es.git
$ cd samsoff.es

I'm also using 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.)

Run the following queries to setup the user in Postgres:

$ psql postgres
# CREATE USER samsoffes 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 with Foreman:

$ bundle exec foreman start

Then open http://localhost:5000 in your browser to see it running. If you have issues getting it up and running, send me an email.

Admin

The default credentials for the admin area are admin and passw0rd. These are obviously different on production or if you have environment variables for ADMIN_USERNAME and ADMIN_PASSWORD.

To access the admin, go to http://localhost:5000/admin/posts.

Something went wrong with that request. Please try again.