Skip to content

Instantly share code, notes, and snippets.

@mattmate
Forked from parndt/gist:709496
Created November 22, 2010 06:26
Show Gist options
  • Save mattmate/709604 to your computer and use it in GitHub Desktop.
Save mattmate/709604 to your computer and use it in GitHub Desktop.
## MAKE SURE YOU BACKUP FIRST
## e.g. using git source control
## This is not for people who don't want to have to do some manual work getting everything working.
## This also is not officially "supported" but we will hopefully be able to write an upgrade task later on based on feedback.
## Notable files that get overriden:
## public/stylesheets/application.css (put yours back afterwards but remove any @import for refinery css)
## public/stylesheets/formatting.css (put yours back afterwards but remove any @import for refinery css)
## public/stylesheets/home.css (put yours back afterwards but remove any @import for refinery css)
## config/routes.rb
## config/application.rb
## app/views/layouts/application.html.erb (lots of changes, you need the latest)
## Gemfile (lots of changes, you need the latest)
cd /somewhere
git clone git://github.com/resolve/refinerycms.git
./refinerycms/bin/refinerycms /path/to/my/0985application --force
# This will invoke the installer.. basically this will fail because of this line in ``Gemfile``:
gem 'refinerycms', '~> 0.9.9.pre'
# Change this to:
gem 'refinerycms', :git => 'git://github.com/resolve/refinerycms.git'
# Now:
cd /path/to/your/0985application
bundle install
rake db:migrate
# Now, you *should* be up to date.
# What you need to look for in your project:
<% content_for :head do %>
# anything to do with stylesheets
<% end %>
# Modify this to:
<% content_for :stylesheets do %>
# your stylesheets
<% end %>
# And:
<% content_for :head_libraries do %>
# anything to do with javascript libraries
<% end %>
# Modify this to:
<% content_for :javascript_libraries do %>
# your javascript libraries
<% end %>
# And:
<% content_for :head do %>
# anything to do with javascripts
<% end %>
# Modify this to:
<% content_for :javascripts do %>
# your javascripts
<% end %>
# And:
<% content_for :head do %>
# anything to do with meta tags
<% end %>
# Modify this to:
<% content_for :meta do %>
# your meta tags
<% end %>
# If you're still an unhappy camper we'd love to get your feedback on:
# a) what you did
# b) what went wrong
# c) any helpful suggestions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment