Skip to content

Instantly share code, notes, and snippets.

@dsaronin
Created February 13, 2012 03:43
Show Gist options
  • Save dsaronin/1813376 to your computer and use it in GitHub Desktop.
Save dsaronin/1813376 to your computer and use it in GitHub Desktop.
RefineryCMS edge project generation
~/projectspace$ rails new ref200 -m http://www.refinerycms.com/t/edge
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 test/fixtures
create test/fixtures/.gitkeep
create test/functional
create test/functional/.gitkeep
create test/integration
create test/integration/.gitkeep
create test/unit
create test/unit/.gitkeep
create test/performance/browsing_test.rb
create test/test_helper.rb
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 http://www.refinerycms.com/t/edge
append Gemfile
run bundle install from "."
Fetching git://github.com/resolve/refinerycms.git
remote: Counting objects: 86157, done.
remote: Compressing objects: 100% (27804/27804), done.
remote: Total 86157 (delta 51563), reused 83414 (delta 49662)
Receiving objects: 100% (86157/86157), 18.33 MiB | 218 KiB/s, done.
Resolving deltas: 100% (51563/51563), done.
Fetching git://github.com/parndt/refinerycms-i18n.git
remote: Counting objects: 1194, done.
remote: Compressing objects: 100% (650/650), done.
remote: Total 1194 (delta 546), reused 1120 (delta 477)
Receiving objects: 100% (1194/1194), 392.00 KiB | 212 KiB/s, done.
Resolving deltas: 100% (546/546), done.
Fetching source index for https://rubygems.org/
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.0.4)
Using activesupport (3.2.1)
Using builder (3.0.0)
Using activemodel (3.2.1)
Using erubis (2.7.0)
Using journey (1.0.1)
Using rack (1.4.1)
Using rack-cache (1.1)
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.1)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.1)
Using actionmailer (3.2.1)
Using arel (3.0.0)
Using tzinfo (0.3.31)
Using activerecord (3.2.1)
Using activeresource (3.2.1)
Installing acts_as_indexed (0.7.7)
Installing awesome_nested_set (2.1.2)
Installing babosa (0.3.6)
Installing bcrypt-ruby (3.0.1) with native extensions
Using bundler (1.0.21)
Installing coffee-script-source (1.2.0)
Installing execjs (1.3.0)
Installing coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Installing json (1.6.5) with native extensions
Installing rdoc (3.12)
Using thor (0.14.6)
Using railties (3.2.1)
Installing coffee-rails (3.2.2)
Installing orm_adapter (0.0.6)
Installing warden (1.1.0)
Installing devise (2.0.1)
Installing dragonfly (0.9.10)
Installing friendly_id_globalize3 (3.2.1.6)
Using rails (3.2.1)
Installing paper_trail (2.6.0)
Installing globalize3 (0.2.0.beta8)
Installing i18n-js (2.1.2)
Installing jquery-rails (2.0.0)
Installing libv8 (3.3.10.4)
Using refinerycms-settings (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Installing sass (3.1.15)
Installing sass-rails (3.2.4)
Installing truncate_html (0.5.1)
Installing uglifier (1.2.3)
Installing will_paginate (3.0.3)
Using refinerycms-core (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using refinerycms-authentication (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using refinerycms-dashboard (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using refinerycms-images (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Installing seo_meta (1.2.0.rc3)
Using refinerycms-pages (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using refinerycms-resources (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using refinerycms (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Installing routing-filter (0.3.0)
Using refinerycms-i18n (2.0.0) from git://github.com/parndt/refinerycms-i18n.git (at master)
Installing sqlite3 (1.3.5) with native extensions
Installing therubyracer (0.9.9) with native extensions
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
rake db:create
generate refinery:cms --fresh-installation
[Devise] We have detected that you are using devise_for inside engine routes. In this case, you probably want to set Devise.router_name = MOUNT_POINT, where MOUNT_POINT is a symbol representing where this engine will be mounted at. For now, Devise will default the mount point to :main_app.
remove public/index.html
remove app/views/layouts/application.html.erb
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 db:migrate
Copied migration 20120211043242_create_refinerycms_settings_schema.refinery_settings.rb from refinery_settings
Copied migration 20120211043243_add_value_type_to_refinery_settings.refinery_settings.rb from refinery_settings
Copied migration 20120211043244_create_refinerycms_core_schema.refinery.rb from refinery
Copied migration 20120211043245_add_locale_to_slugs.refinery.rb from refinery
Copied migration 20120211043246_create_refinerycms_authentication_schema.refinery_authentication.rb from refinery_authentication
Copied migration 20120211043247_add_missing_indexes_to_roles_users.refinery_authentication.rb from refinery_authentication
Copied migration 20120211043248_change_to_devise_users_table.refinery_authentication.rb from refinery_authentication
Copied migration 20120211043249_add_remember_created_at_to_users.refinery_authentication.rb from refinery_authentication
Copied migration 20120211043250_remove_password_salt_from_users.refinery_authentication.rb from refinery_authentication
Copied migration 20120211043251_add_reset_password_sent_at_and_remove_unused_fields_from_users.refinery_authentication.rb from refinery_authentication
Copied migration 20120211043252_create_refinerycms_images_schema.refinery_images.rb from refinery_images
Copied migration 20120211043253_create_seo_meta.seo_meta_engine.rb from seo_meta_engine
Copied migration 20120211043254_create_refinerycms_pages_schema.refinery_pages.rb from refinery_pages
Copied migration 20120211043255_remove_cached_slug_from_pages.refinery_pages.rb from refinery_pages
Copied migration 20120211043256_translate_page_plugin.refinery_pages.rb from refinery_pages
Copied migration 20120211043257_translate_custom_title_on_pages.refinery_pages.rb from refinery_pages
Copied migration 20120211043258_remove_translated_fields_from_pages.refinery_pages.rb from refinery_pages
Copied migration 20120211043259_attach_seo_meta.refinery_pages.rb from refinery_pages
Copied migration 20120211043260_create_add_template_columns.refinery_pages.rb from refinery_pages
Copied migration 20120211043261_add_custom_slug_to_refinery_page_translations.refinery_pages.rb from refinery_pages
Copied migration 20120211043262_rename_custom_title_to_menu_title_in_refinery_pages.refinery_pages.rb from refinery_pages
Copied migration 20120211043263_remove_custom_title_from_refinery_pages.refinery_pages.rb from refinery_pages
Copied migration 20120211043264_create_refinerycms_resources_schema.refinery_resources.rb from refinery_resources
== CreateRefinerycmsSettingsSchema: migrating ================================
-- create_table("refinery_settings", {:force=>true})
-> 0.0500s
-- add_index("refinery_settings", ["name"], {:name=>"index_refinery_settings_on_name"})
-> 0.0005s
== CreateRefinerycmsSettingsSchema: migrated (0.0799s) =======================
== AddValueTypeToRefinerySettings: migrating =================================
-- add_column("refinery_settings", :form_value_type, :string)
-> 0.0009s
== AddValueTypeToRefinerySettings: migrated (0.0010s) ========================
== CreateRefinerycmsCoreSchema: migrating ====================================
-- create_table("slugs", {:force=>true})
-> 0.0018s
-- add_index("slugs", ["name", "sluggable_type", "scope", "sequence"], {:name=>"index_slugs_on_n_s_s_and_s", :unique=>true})
-> 0.0008s
-- add_index("slugs", ["sluggable_id"], {:name=>"index_slugs_on_sluggable_id"})
-> 0.0009s
== CreateRefinerycmsCoreSchema: migrated (0.0039s) ===========================
== AddLocaleToSlugs: migrating ===============================================
-- add_column("slugs", :locale, :string)
-> 0.0009s
-- add_index("slugs", :locale)
-> 0.0011s
== AddLocaleToSlugs: migrated (0.0022s) ======================================
== CreateRefinerycmsAuthenticationSchema: migrating ==========================
-- create_table("refinery_roles_users", {:id=>false, :force=>true})
-> 0.0010s
-- create_table("refinery_roles", {:force=>true})
-> 0.0009s
-- create_table("refinery_user_plugins", {:force=>true})
-> 0.0010s
-- add_index("refinery_user_plugins", ["name"], {:name=>"index_refinery_user_plugins_on_title"})
-> 0.0005s
-- add_index("refinery_user_plugins", ["user_id", "name"], {:name=>"index_unique_refinery_user_plugins", :unique=>true})
-> 0.0007s
-- create_table("refinery_users", {:force=>true})
-> 0.0012s
-- add_index("refinery_users", ["id"], {:name=>"index_refinery_users_on_id"})
-> 0.0004s
== CreateRefinerycmsAuthenticationSchema: migrated (0.0189s) =================
== AddMissingIndexesToRolesUsers: migrating ==================================
-- add_index("refinery_roles_users", [:role_id, :user_id])
-> 0.0009s
-- add_index("refinery_roles_users", [:user_id, :role_id])
-> 0.0009s
== AddMissingIndexesToRolesUsers: migrated (0.0021s) =========================
== ChangeToDeviseUsersTable: migrating =======================================
-- add_column("refinery_users", :current_sign_in_at, :datetime)
-> 0.0009s
-- add_column("refinery_users", :last_sign_in_at, :datetime)
-> 0.0006s
-- add_column("refinery_users", :current_sign_in_ip, :string)
-> 0.0006s
-- add_column("refinery_users", :last_sign_in_ip, :string)
-> 0.0006s
-- add_column("refinery_users", :sign_in_count, :integer)
-> 0.0006s
-- add_column("refinery_users", :remember_token, :string)
-> 0.0006s
-- add_column("refinery_users", :reset_password_token, :string)
-> 0.0006s
-- rename_column("refinery_users", :crypted_password, :encrypted_password)
-> 0.0127s
-- rename_column("refinery_users", :login, :username)
-> 0.0100s
== ChangeToDeviseUsersTable: migrated (0.0283s) ==============================
== AddRememberCreatedAtToUsers: migrating ====================================
-- add_column("refinery_users", :remember_created_at, :datetime)
-> 0.0009s
== AddRememberCreatedAtToUsers: migrated (0.0011s) ===========================
== RemovePasswordSaltFromUsers: migrating ====================================
-- remove_column("refinery_users", :password_salt)
-> 0.0153s
== RemovePasswordSaltFromUsers: migrated (0.0171s) ===========================
== AddResetPasswordSentAtAndRemoveUnusedFieldsFromUsers: migrating ===========
-- add_column("refinery_users", :reset_password_sent_at, :datetime)
-> 0.0009s
-- remove_column("refinery_users", :remember_token)
-> 0.0431s
-- remove_column("refinery_users", :perishable_token)
-> 0.0098s
-- remove_column("refinery_users", :persistence_token)
-> 0.0092s
== AddResetPasswordSentAtAndRemoveUnusedFieldsFromUsers: migrated (0.0635s) ==
== CreateRefinerycmsImagesSchema: migrating ==================================
-- create_table("refinery_images", {:force=>true})
-> 0.0016s
== CreateRefinerycmsImagesSchema: migrated (0.0550s) =========================
== CreateSeoMeta: migrating ==================================================
-- create_table(:seo_meta)
-> 0.0020s
-- add_index(:seo_meta, :id)
-> 0.0007s
-- add_index(:seo_meta, [:seo_meta_id, :seo_meta_type])
-> 0.0009s
== CreateSeoMeta: migrated (0.0039s) =========================================
== CreateRefinerycmsPagesSchema: migrating ===================================
-- create_table("refinery_page_parts", {:force=>true})
-> 0.0013s
-- add_index("refinery_page_parts", ["id"], {:name=>"index_refinery_page_parts_on_id"})
-> 0.0005s
-- add_index("refinery_page_parts", ["refinery_page_id"], {:name=>"index_refinery_page_parts_on_page_id"})
-> 0.0006s
-- create_table("refinery_pages", {:force=>true})
-> 0.0021s
-- add_index("refinery_pages", ["depth"], {:name=>"index_refinery_pages_on_depth"})
-> 0.0004s
-- add_index("refinery_pages", ["id"], {:name=>"index_refinery_pages_on_id"})
-> 0.0006s
-- add_index("refinery_pages", ["lft"], {:name=>"index_refinery_pages_on_lft"})
-> 0.0007s
-- add_index("refinery_pages", ["parent_id"], {:name=>"index_refinery_pages_on_parent_id"})
-> 0.0008s
-- add_index("refinery_pages", ["rgt"], {:name=>"index_refinery_pages_on_rgt"})
-> 0.0009s
== CreateRefinerycmsPagesSchema: migrated (0.0093s) ==========================
== RemoveCachedSlugFromPages: migrating ======================================
-- Nothing done, no cached_slug field found in ::Refinery::Page table
== RemoveCachedSlugFromPages: migrated (0.0015s) =============================
== TranslatePagePlugin: migrating ============================================
-- Creating ::Refinery::PagePart translation table
-> 0.0050s
-- Creating ::Refinery::Page translation table
-> 0.0039s
-- Seeding pages
-> 0.6616s
-- Updating slugs
-> 0.0004s
-> 3 rows
== TranslatePagePlugin: migrated (0.6928s) ===================================
== TranslateCustomTitleOnPages: migrating ====================================
-- Nothing done, ::Refinery::Page.translation_class table already includes a menu_title field
== TranslateCustomTitleOnPages: migrated (0.0007s) ===========================
== RemoveTranslatedFieldsFromPages: migrating ================================
-- remove_column("refinery_pages", :title)
-> 0.0275s
-- remove_column("refinery_pages", :meta_keywords)
-> 0.0633s
-- remove_column("refinery_pages", :meta_description)
-> 0.0246s
-- remove_column("refinery_pages", :browser_title)
-> 0.0234s
== RemoveTranslatedFieldsFromPages: migrated (0.1401s) =======================
== AttachSeoMeta: migrating ==================================================
-- remove_column("refinery_page_translations", :browser_title)
-> 0.0114s
-- remove_column("refinery_page_translations", :meta_keywords)
-> 0.0106s
-- remove_column("refinery_page_translations", :meta_description)
-> 0.0101s
== AttachSeoMeta: migrated (0.0614s) =========================================
== CreateAddTemplateColumns: migrating =======================================
-- add_column("refinery_pages", :view_template, :string)
-> 0.0010s
-- add_column("refinery_pages", :layout_template, :string)
-> 0.0007s
== CreateAddTemplateColumns: migrated (0.0020s) ==============================
== AddCustomSlugToRefineryPageTranslations: migrating ========================
== AddCustomSlugToRefineryPageTranslations: migrated (0.0000s) ===============
== RenameCustomTitleToMenuTitleInRefineryPages: migrating ====================
-- remove_column("refinery_pages", :custom_title_type)
-> 0.0301s
== RenameCustomTitleToMenuTitleInRefineryPages: migrated (0.0303s) ===========
== RemoveCustomTitleFromRefineryPages: migrating =============================
-- remove_column("refinery_pages", :custom_title)
-> 0.0253s
== RemoveCustomTitleFromRefineryPages: migrated (0.0268s) ====================
== CreateRefinerycmsResourcesSchema: migrating ===============================
-- create_table("refinery_resources", {:force=>true})
-> 0.0015s
== CreateRefinerycmsResourcesSchema: migrated (0.0604s) ======================
============================================================================
Your new RefineryCMS application is now running on edge and mounted to /.
============================================================================
run bundle install
Using rake (0.9.2.2)
Using i18n (0.6.0)
Using multi_json (1.0.4)
Using activesupport (3.2.1)
Using builder (3.0.0)
Using activemodel (3.2.1)
Using erubis (2.7.0)
Using journey (1.0.1)
Using rack (1.4.1)
Using rack-cache (1.1)
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.1)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.4.1)
Using actionmailer (3.2.1)
Using arel (3.0.0)
Using tzinfo (0.3.31)
Using activerecord (3.2.1)
Using activeresource (3.2.1)
Using acts_as_indexed (0.7.7)
Using awesome_nested_set (2.1.2)
Using babosa (0.3.6)
Using bcrypt-ruby (3.0.1)
Using bundler (1.0.21)
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.1)
Using coffee-rails (3.2.2)
Using orm_adapter (0.0.6)
Using warden (1.1.0)
Using devise (2.0.1)
Using dragonfly (0.9.10)
Using friendly_id_globalize3 (3.2.1.6)
Using rails (3.2.1)
Using paper_trail (2.6.0)
Using globalize3 (0.2.0.beta8)
Using i18n-js (2.1.2)
Using jquery-rails (2.0.0)
Using libv8 (3.3.10.4)
Using refinerycms-settings (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using sass (3.1.15)
Using sass-rails (3.2.4)
Using truncate_html (0.5.1)
Using uglifier (1.2.3)
Using will_paginate (3.0.3)
Using refinerycms-core (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using refinerycms-authentication (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using refinerycms-dashboard (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using refinerycms-images (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using seo_meta (1.2.0.rc3)
Using refinerycms-pages (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using refinerycms-resources (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using refinerycms (2.0.0) from git://github.com/resolve/refinerycms.git (at master)
Using routing-filter (0.3.0)
Using refinerycms-i18n (2.0.0) from git://github.com/parndt/refinerycms-i18n.git (at master)
Using sqlite3 (1.3.5)
Using therubyracer (0.9.9)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment