Friday, October 25, 2013

Urban Ephemera 10/25/13

Got lots accomplished today.  I deployed the program to Heroku today.  The major complication was dealing with the fact that my background images were not showing up.  I fixed this with image-path:

background-image: url(image-path('IMG_0003.png'));

Users can now make Stores.  The pages used to generate new Users and Stores are fully stylized with Bootstrap and raw CSS.  I now need Users to make Reviews that are owned by both Users and Stores.

I am using Thin for my web server instead of Webrick.  Thin is more robust in a production environment.

Christophers-MacBook-Pro:urban_ephemera christopherspears$ rails s
=> Booting Thin
=> Rails 4.0.0 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server

Added this to my Gemfile:

group :production do
  gem 'rails_12factor'
  gem 'thin'
end

The gem 'rails_12factor' should fix most of the asset pipeline issues.

Changed the command used to launch my web process by creating Procfile:

web: bundle exec thin start -p $PORT -e $RACK_ENV

No comments:

Post a Comment