Skip to content

Instantly share code, notes, and snippets.

@murdoch
Created March 17, 2012 14:00
Show Gist options
  • Save murdoch/2059485 to your computer and use it in GitHub Desktop.
Save murdoch/2059485 to your computer and use it in GitHub Desktop.
refinery on heroku
stv@home:~/Desktop/refinery$ refinerycms test_123_456 --heroku
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/mailers
create app/models
create app/views/layouts/application.html.erb
create app/mailers/.gitkeep
create app/models/.gitkeep
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create lib/assets
create lib/assets/.gitkeep
create log
create log/.gitkeep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/index.html
create public/robots.txt
create script
create script/rails
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.gitkeep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.gitkeep
create vendor/plugins
create vendor/plugins/.gitkeep
apply /home/stephen/.rvm/gems/ruby-1.9.2-p290/gems/refinerycms-2.0.2/templates/refinery/installer.rb
append Gemfile
run bundle install from "."
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.1.0)
Using activesupport (3.2.2)
Using builder (3.0.0)
Using activemodel (3.2.2)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.2)
Using actionpack (3.2.2)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.2)
Using arel (3.0.2)
Using tzinfo (0.3.32)
Using activerecord (3.2.2)
Using activeresource (3.2.2)
Using acts_as_indexed (0.7.8)
Using awesome_nested_set (2.1.2)
Using babosa (0.3.7)
Using bcrypt-ruby (3.0.1)
Using bundler (1.1.1)
Using coffee-script-source (1.2.0)
Using execjs (1.3.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.6.5)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.2.2)
Using coffee-rails (3.2.2)
Using orm_adapter (0.0.6)
Using warden (1.1.1)
Using devise (2.0.4)
Using dragonfly (0.9.11)
Using friendly_id (4.0.3)
Using rails (3.2.2)
Using paper_trail (2.6.2)
Using globalize3 (0.2.0)
Using jquery-rails (2.0.1)
Using sass (3.1.15)
Using sass-rails (3.2.4)
Using truncate_html (0.5.4)
Using uglifier (1.2.3)
Using will_paginate (3.0.3)
Using refinerycms-core (2.0.2)
Using refinerycms-authentication (2.0.2)
Using refinerycms-dashboard (2.0.2)
Using refinerycms-images (2.0.2)
Using seo_meta (1.2.0)
Using refinerycms-pages (2.0.2)
Using refinerycms-resources (2.0.2)
Using refinerycms (2.0.2)
Using routing-filter (0.3.0)
Using refinerycms-i18n (2.0.0)
Using sqlite3 (1.3.5)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
rake db:create
generate refinery:cms --fresh-installation --heroku
remove public/index.html
remove app/views/layouts/application.html.erb
insert config/environments/production.rb
append .gitignore
create app/views/sitemap/index.xml.builder
create config/database.yml.mysql
create config/database.yml.postgresql
create config/database.yml.sqlite3
create config/initializers/devise.rb
create app/decorators/controllers/refinery/.gitkeep
create app/decorators/models/refinery/.gitkeep
insert config/routes.rb
create config/initializers/refinery/core.rb
create config/initializers/refinery/resources.rb
create config/initializers/refinery/pages.rb
append db/seeds.rb
create config/initializers/refinery/images.rb
create config/initializers/refinery/i18n.rb
rake railties:install:migrations
Copied migration 20120317134149_create_refinerycms_authentication_schema.refinery_authentication.rb from refinery_authentication
Copied migration 20120317134150_create_refinerycms_images_schema.refinery_images.rb from refinery_images
Copied migration 20120317134151_create_refinerycms_resources_schema.refinery_resources.rb from refinery_resources
Copied migration 20120317134152_create_refinerycms_pages_schema.refinery_pages.rb from refinery_pages
Copied migration 20120317134153_create_seo_meta.seo_meta_engine.rb from seo_meta_engine
rake db:create db:migrate
db/development.sqlite3 already exists
db/test.sqlite3 already exists
== CreateRefinerycmsAuthenticationSchema: migrating ==========================
-- create_table(:refinery_roles_users, {:id=>false})
-> 0.0028s
-- add_index(:refinery_roles_users, [:role_id, :user_id])
-> 0.0018s
-- add_index(:refinery_roles_users, [:user_id, :role_id])
-> 0.0068s
-- create_table(:refinery_roles)
-> 0.0034s
-- create_table(:refinery_user_plugins)
-> 0.0085s
-- add_index(:refinery_user_plugins, :name)
-> 0.0019s
-- add_index(:refinery_user_plugins, [:user_id, :name], {:unique=>true})
-> 0.0040s
-- create_table(:refinery_users)
-> 0.0090s
-- add_index(:refinery_users, :id)
-> 0.0019s
== CreateRefinerycmsAuthenticationSchema: migrated (0.0623s) =================
== CreateRefinerycmsImagesSchema: migrating ==================================
-- create_table(:refinery_images)
-> 0.0067s
== CreateRefinerycmsImagesSchema: migrated (0.0073s) =========================
== CreateRefinerycmsResourcesSchema: migrating ===============================
-- create_table(:refinery_resources)
-> 0.0055s
== CreateRefinerycmsResourcesSchema: migrated (0.0061s) ======================
== CreateRefinerycmsPagesSchema: migrating ===================================
-- create_table(:refinery_page_parts)
-> 0.0098s
-- add_index(:refinery_page_parts, :id)
-> 0.0023s
-- add_index(:refinery_page_parts, :refinery_page_id)
-> 0.0012s
-- create_table(:refinery_pages)
-> 0.2011s
-- add_index(:refinery_pages, :depth)
-> 0.0011s
-- add_index(:refinery_pages, :id)
-> 0.0010s
-- add_index(:refinery_pages, :lft)
-> 0.0018s
-- add_index(:refinery_pages, :parent_id)
-> 0.0018s
-- add_index(:refinery_pages, :rgt)
-> 0.0016s
== CreateRefinerycmsPagesSchema: migrated (0.2469s) ==========================
== CreateSeoMeta: migrating ==================================================
-- create_table(:seo_meta)
-> 0.0060s
-- add_index(:seo_meta, :id)
-> 0.0019s
-- add_index(:seo_meta, [:seo_meta_id, :seo_meta_type])
-> 0.0028s
== CreateSeoMeta: migrated (0.0245s) =========================================
rake db:seed
append Gemfile
append Gemfile
run bundle install from "."
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.1.0)
Using activesupport (3.2.2)
Using builder (3.0.0)
Using activemodel (3.2.2)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.2)
Using actionpack (3.2.2)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.2)
Using arel (3.0.2)
Using tzinfo (0.3.32)
Using activerecord (3.2.2)
Using activeresource (3.2.2)
Using acts_as_indexed (0.7.8)
Using addressable (2.2.7)
Using awesome_nested_set (2.1.2)
Using babosa (0.3.7)
Using bcrypt-ruby (3.0.1)
Using bundler (1.1.1)
Using coffee-script-source (1.2.0)
Using execjs (1.3.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.6.5)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.2.2)
Using coffee-rails (3.2.2)
Using orm_adapter (0.0.6)
Using warden (1.1.1)
Using devise (2.0.4)
Using dragonfly (0.9.11)
Using excon (0.6.6)
Using formatador (0.2.1)
Using net-ssh (2.3.0)
Using net-scp (1.0.4)
Using nokogiri (1.5.1)
Using ruby-hmac (0.4.0)
Using fog (0.9.0)
Using friendly_id (4.0.3)
Using rails (3.2.2)
Using paper_trail (2.6.2)
Using globalize3 (0.2.0)
Using launchy (2.0.5)
Using netrc (0.7.1)
Using rest-client (1.6.7)
Using rubyzip (0.9.4)
Using heroku (2.21.3)
Using jquery-rails (2.0.1)
Using pg (0.13.1)
Using sass (3.1.15)
Using sass-rails (3.2.4)
Using truncate_html (0.5.4)
Using uglifier (1.2.3)
Using will_paginate (3.0.3)
Using refinerycms-core (2.0.2)
Using refinerycms-authentication (2.0.2)
Using refinerycms-dashboard (2.0.2)
Using refinerycms-images (2.0.2)
Using seo_meta (1.2.0)
Using refinerycms-pages (2.0.2)
Using refinerycms-resources (2.0.2)
Using refinerycms (2.0.2)
Using routing-filter (0.3.0)
Using refinerycms-i18n (2.0.0)
Using sqlite3 (1.3.5)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Initializing and committing to git..
run git init && git add . && git commit -am 'Created application using Refinery CMS 2.0.2' from "."
Initialized empty Git repository in /home/stephen/Desktop/refinery/test_123_456/.git/
[master (root-commit) 706ae64] Created application using Refinery CMS 2.0.2
49 files changed, 1983 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
create mode 100644 Gemfile
create mode 100644 Gemfile.lock
create mode 100644 README.rdoc
create mode 100644 Rakefile
create mode 100644 app/assets/images/rails.png
create mode 100644 app/assets/javascripts/application.js
create mode 100644 app/assets/stylesheets/application.css
create mode 100644 app/controllers/application_controller.rb
create mode 100644 app/decorators/controllers/refinery/.gitkeep
create mode 100644 app/decorators/models/refinery/.gitkeep
create mode 100644 app/helpers/application_helper.rb
create mode 100644 app/mailers/.gitkeep
create mode 100644 app/models/.gitkeep
create mode 100644 app/views/sitemap/index.xml.builder
create mode 100644 config.ru
create mode 100644 config/application.rb
create mode 100644 config/boot.rb
create mode 100644 config/database.yml
create mode 100644 config/database.yml.mysql
create mode 100644 config/database.yml.postgresql
create mode 100644 config/database.yml.sqlite3
create mode 100644 config/environment.rb
create mode 100644 config/environments/development.rb
create mode 100644 config/environments/production.rb
create mode 100644 config/environments/test.rb
create mode 100644 config/initializers/backtrace_silencers.rb
create mode 100644 config/initializers/devise.rb
create mode 100644 config/initializers/inflections.rb
create mode 100644 config/initializers/mime_types.rb
create mode 100644 config/initializers/refinery/core.rb
create mode 100644 config/initializers/refinery/i18n.rb
create mode 100644 config/initializers/refinery/images.rb
create mode 100644 config/initializers/refinery/pages.rb
create mode 100644 config/initializers/refinery/resources.rb
create mode 100644 config/initializers/secret_token.rb
create mode 100644 config/initializers/session_store.rb
create mode 100644 config/initializers/wrap_parameters.rb
create mode 100644 config/locales/en.yml
create mode 100644 config/routes.rb
create mode 100644 db/migrate/20120317134149_create_refinerycms_authentication_schema.refinery_authentication.rb
create mode 100644 db/migrate/20120317134150_create_refinerycms_images_schema.refinery_images.rb
create mode 100644 db/migrate/20120317134151_create_refinerycms_resources_schema.refinery_resources.rb
create mode 100644 db/migrate/20120317134152_create_refinerycms_pages_schema.refinery_pages.rb
create mode 100644 db/migrate/20120317134153_create_seo_meta.seo_meta_engine.rb
create mode 100644 db/schema.rb
create mode 100644 db/seeds.rb
create mode 100644 doc/README_FOR_APP
create mode 100644 lib/assets/.gitkeep
create mode 100644 lib/tasks/.gitkeep
create mode 100644 log/.gitkeep
create mode 100644 public/404.html
create mode 100644 public/422.html
create mode 100644 public/500.html
create mode 100644 public/favicon.ico
create mode 100644 public/robots.txt
create mode 100755 script/rails
create mode 100644 vendor/assets/javascripts/.gitkeep
create mode 100644 vendor/assets/stylesheets/.gitkeep
create mode 100644 vendor/plugins/.gitkeep
Creating Heroku app..
run heroku create heroku --stack cedar from "."
! Name is already taken
Pushing to Heroku (this takes time, be patient)..
run git push heroku master from "."
fatal: 'heroku' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
Setting up the Heroku database..
run heroku run rake db:migrate from "."
Running rake db:migrate attached to terminal... failed
! No app specified.
! Run this command from an app folder or specify which app to use with --app <app name>
Restarting servers...
run heroku restart from "."
Restarting processes... ! No app specified.
! Run this command from an app folder or specify which app to use with --app <app name>
============================================================================
Your new Refinery CMS application is now installed and mounts at '/'
============================================================================
run bundle install
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.1.0)
Using activesupport (3.2.2)
Using builder (3.0.0)
Using activemodel (3.2.2)
Using erubis (2.7.0)
Using journey (1.0.3)
Using rack (1.4.1)
Using rack-cache (1.2)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.1.2)
Using actionpack (3.2.2)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.4)
Using actionmailer (3.2.2)
Using arel (3.0.2)
Using tzinfo (0.3.32)
Using activerecord (3.2.2)
Using activeresource (3.2.2)
Using acts_as_indexed (0.7.8)
Using addressable (2.2.7)
Using awesome_nested_set (2.1.2)
Using babosa (0.3.7)
Using bcrypt-ruby (3.0.1)
Using coffee-script-source (1.2.0)
Using execjs (1.3.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.6.5)
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.2.2)
Using coffee-rails (3.2.2)
Using orm_adapter (0.0.6)
Using warden (1.1.1)
Using devise (2.0.4)
Using dragonfly (0.9.11)
Using excon (0.6.6)
Using formatador (0.2.1)
Using net-ssh (2.3.0)
Using net-scp (1.0.4)
Using nokogiri (1.5.1)
Using ruby-hmac (0.4.0)
Using fog (0.9.0)
Using friendly_id (4.0.3)
Using bundler (1.1.1)
Using rails (3.2.2)
Using paper_trail (2.6.2)
Using globalize3 (0.2.0)
Using launchy (2.0.5)
Using netrc (0.7.1)
Using rest-client (1.6.7)
Using rubyzip (0.9.4)
Using heroku (2.21.3)
Using jquery-rails (2.0.1)
Using pg (0.13.1)
Using sass (3.1.15)
Using sass-rails (3.2.4)
Using truncate_html (0.5.4)
Using uglifier (1.2.3)
Using will_paginate (3.0.3)
Using refinerycms-core (2.0.2)
Using refinerycms-authentication (2.0.2)
Using refinerycms-dashboard (2.0.2)
Using refinerycms-images (2.0.2)
Using seo_meta (1.2.0)
Using refinerycms-pages (2.0.2)
Using refinerycms-resources (2.0.2)
Using refinerycms (2.0.2)
Using routing-filter (0.3.0)
Using refinerycms-i18n (2.0.0)
Using sqlite3 (1.3.5)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
=== ACTION REQUIRED ===
Now you can launch your webserver using:
cd test_123_456
rails server
This will launch the built-in webserver at port 3000.
You can now see your site running in your browser at http://localhost:3000
If you want files and images to work on Heroku, you will need setup S3:
heroku config:add S3_BUCKET=XXXXXXXXX S3_KEY=XXXXXXXXX S3_SECRET=XXXXXXXXXX S3_REGION=XXXXXXXXXX
Thanks for installing Refinery CMS, we hope you enjoy crafting your application!
---------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment