getting started with Refinerycms
--
###################### Working with git & heoku in Refinery cms #####################
1)--prerequesits
first complete all 9 steps listed in Prerequsits for Refinerycms file
othrwise check 1)ruby is working
2)check rails is working
3)check database and that database gem is working
4)check Image magic is working
5)check Git is working
6)check RVM is working
7)check refinerycms is working
2)-- creating refinerycms project
you can create project by the command
refinerycms project_name
ex:-
refinerycms practice1 //enter command in command promt
create log/development.log
create log/test.log
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 public/images
create public/images/rails.png
create public/stylesheets
create public/stylesheets/.gitkeep
create public/javascripts
create public/javascripts/.gitkeep
create public/javascripts/application.js
create script
create script/rails
create tmp
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create vendor/plugins
create vendor/plugins/.gitkeep
---------
Refinery successfully installed in '/root/heroku/sam1/practice'!
3)--- Installing gem requirements using bundler..
go to project home directry and enter command
bundle install
ex:-
cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.5)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.5)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.7)
Using tzinfo (0.3.24)
Using actionpack (3.0.5)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.15)
Using actionmailer (3.0.5)
Using arel (2.0.9)
Using activerecord (3.0.5)
Using activeresource (3.0.5)
Using acts_as_indexed (0.7.1)
Using xml-simple (1.0.14)
Using aws-s3 (0.6.2)
Using babosa (0.2.2)
Using bcrypt-ruby (2.1.4)
Using bundler (1.0.10)
Using warden (1.0.3)
Using devise (1.1.7)
Using dragonfly (0.8.2)
Using friendly_id_globalize3 (3.2.1)
Using globalize3 (0.1.0.beta)
Using moretea-awesome_nested_set (1.4.3.1)
Using rack-cache (1.0)
Using thor (0.14.6)
Using railties (3.0.5)
Using rails (3.0.5)
Using rdoc (3.5.3)
Using refinerycms-base (0.9.9.4)
Using refinerycms-generators (0.9.9.6)
Using refinerycms-settings (0.9.9.4)
Using truncate_html (0.5.0)
Using will_paginate (3.0.pre2)
Using refinerycms-core (0.9.9.4)
Using refinerycms-authentication (0.9.9.4)
Using refinerycms-dashboard (0.9.9.4)
Using refinerycms-images (0.9.9.4)
Using refinerycms-pages (0.9.9.4)
Using refinerycms-resources (0.9.9.4)
Using refinerycms (0.9.9.4)
Using routing-filter (0.2.3)
Using refinerycms-i18n (0.9.9.10)
Using sqlite3 (1.3.3)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
4)--- Creating a new database..
go to project home directry and enter command
rake -f db:create
ex:-
cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S rake -f "/root/heroku/sam1/practice/Rakefile" db:create
db/test.sqlite3 already exists
db/development.sqlite3 already exists
(in /root/heroku/sam1/practice)
5)---give external rails modeule suport
go to project home directry and enter command
rails g refinerycms
ex:-
cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S rails generate refinerycms
create public/index.html.backup
remove public/index.html
create app/views/layouts/application.html.erb.backup
remove app/views/layouts/application.html.erb
create public/stylesheets/application.css
create public/stylesheets/formatting.css
create public/stylesheets/home.css
create public/stylesheets/theme.css
create public/javascripts/admin.js
append config/environments/development.rb
append config/environments/test.rb
append config/environments/production.rb
append .gitignore
append db/seeds.rb
create db/migrate/20110307092324_create_refinerycms_core_schema.rb
create db/migrate/20110307092325_add_locale_to_slugs.rb
create db/migrate/20110307092326_create_refinerycms_settings_schema.rb
create db/migrate/20110307092327_add_value_type_to_refinery_settings.rb
create db/migrate/20110307092328_create_refinerycms_authentication_schema.rb
create db/migrate/20110307092329_add_missing_indexes_to_roles_users.rb
create db/migrate/20110307092330_change_to_devise_users_table.rb
create db/migrate/20110307092331_add_remember_created_at_to_users.rb
create db/migrate/20110307092332_create_refinerycms_images_schema.rb
create db/migrate/20110307092333_create_refinerycms_pages_schema.rb
create db/migrate/20110307092334_translate_page_plugin.rb
create db/migrate/20110307092335_remove_cached_slug_from_pages.rb
create db/seeds/pages.rb
create db/migrate/20110307092336_create_refinerycms_resources_schema.rb
create app/views/sitemap/index.xml.builder
create autotest/autotest.rb
create autotest/discover.rb
create config/database.yml.mysql
create config/database.yml.postgresql
create config/database.yml.sqlite3
create config/i18n-js.yml
create config/initializers/devise.rb
create config/settings.rb
6)---Setting up your development database..
go to project home directry and enter command
rake -f db:migrate
ex:-
cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S rake -f "/root/heroku/sam1/practice/Rakefile" db:migrate
(in /root/heroku/sam1/practice)
== CreateRefinerycmsCoreSchema: migrating ====================================
-- create_table("slugs", {:force=>true})
-> 0.0463s
-- add_index("slugs", ["name", "sluggable_type", "scope", "sequence"], {:name=>"index_slugs_on_n_s_s_and_s", :unique=>true})
-> 0.0390s
-- add_index("slugs", ["sluggable_id"], {:name=>"index_slugs_on_sluggable_id"})
-> 0.0011s
== CreateRefinerycmsCoreSchema: migrated (0.0868s) ===========================
== AddLocaleToSlugs: migrating ===============================================
-- add_column(:slugs, :locale, :string)
-> 0.0015s
-- add_index(:slugs, :locale)
-> 0.0014s
== AddLocaleToSlugs: migrated (0.0030s) ======================================
== CreateRefinerycmsSettingsSchema: migrating ================================
-- create_table("refinery_settings", {:force=>true})
-> 0.0058s
-- add_index("refinery_settings", ["name"], {:name=>"index_refinery_settings_on_name"})
-> 0.0011s
== CreateRefinerycmsSettingsSchema: migrated (0.0070s) =======================
== AddValueTypeToRefinerySettings: migrating =================================
-- add_column("refinery_settings", :form_value_type, :string)
-> 0.0016s
== AddValueTypeToRefinerySettings: migrated (0.0017s) ========================
== CreateRefinerycmsAuthenticationSchema: migrating ==========================
-- create_table("roles_users", {:id=>false, :force=>true})
-> 0.0022s
-- create_table("roles", {:force=>true})
-> 0.0019s
-- create_table("user_plugins", {:force=>true})
-> 0.0025s
-- add_index("user_plugins", ["name"], {:name=>"index_user_plugins_on_title"})
-> 0.0024s
-- add_index("user_plugins", ["user_id", "name"], {:name=>"index_unique_user_plugins", :unique=>true})
-> 0.0016s
-- create_table("users", {:force=>true})
-> 0.0026s
-- add_index("users", ["id"], {:name=>"index_users_on_id"})
-> 0.0008s
== CreateRefinerycmsAuthenticationSchema: migrated (0.1714s) =================
== AddMissingIndexesToRolesUsers: migrating ==================================
-- add_index("roles_users", [:role_id, :user_id])
-> 0.0016s
-- add_index("roles_users", [:user_id, :role_id])
-> 0.0011s
== AddMissingIndexesToRolesUsers: migrated (0.0029s) =========================
== ChangeToDeviseUsersTable: migrating =======================================
-- add_column("users", :current_sign_in_at, :datetime)
-> 0.0014s
-- add_column("users", :last_sign_in_at, :datetime)
-> 0.0008s
-- add_column("users", :current_sign_in_ip, :string)
-> 0.0008s
-- add_column("users", :last_sign_in_ip, :string)
-> 0.0010s
-- add_column("users", :sign_in_count, :integer)
-> 0.0008s
-- add_column("users", :remember_token, :string)
-> 0.0009s
-- add_column("users", :reset_password_token, :string)
-> 0.0011s
-- rename_column("users", :crypted_password, :encrypted_password)
-> 0.1986s
-- rename_column("users", :login, :username)
-> 0.2594s
== ChangeToDeviseUsersTable: migrated (0.4654s) ==============================
== AddRememberCreatedAtToUsers: migrating ====================================
-- add_column(:users, :remember_created_at, :datetime)
-> 0.0014s
== AddRememberCreatedAtToUsers: migrated (0.0015s) ===========================
== CreateRefinerycmsImagesSchema: migrating ==================================
-- create_table("images", {:force=>true})
-> 0.0036s
== CreateRefinerycmsImagesSchema: migrated (0.0042s) =========================
== CreateRefinerycmsPagesSchema: migrating ===================================
-- create_table("page_parts", {:force=>true})
-> 0.0029s
-- add_index("page_parts", ["id"], {:name=>"index_page_parts_on_id"})
-> 0.0010s
-- add_index("page_parts", ["page_id"], {:name=>"index_page_parts_on_page_id"})
-> 0.0012s
-- create_table("pages", {:force=>true})
-> 0.0039s
-- add_index("pages", ["depth"], {:name=>"index_pages_on_depth"})
-> 0.0008s
-- add_index("pages", ["id"], {:name=>"index_pages_on_id"})
-> 0.0009s
-- add_index("pages", ["lft"], {:name=>"index_pages_on_lft"})
-> 0.0011s
-- add_index("pages", ["parent_id"], {:name=>"index_pages_on_parent_id"})
-> 0.0016s
-- add_index("pages", ["rgt"], {:name=>"index_pages_on_rgt"})
-> 0.0017s
== CreateRefinerycmsPagesSchema: migrated (0.0672s) ==========================
== TranslatePagePlugin: migrating ============================================
== TranslatePagePlugin: migrated (1.2704s) ===================================
== RemoveCachedSlugFromPages: migrating ======================================
== RemoveCachedSlugFromPages: migrated (0.0000s) =============================
== CreateRefinerycmsResourcesSchema: migrating ===============================
-- create_table("resources", {:force=>true})
-> 0.0037s
== CreateRefinerycmsResourcesSchema: migrated (0.0042s) ======================
7)---Initializing and committing to git..
go to project home directry and enter command
git init
git add .
git commit -am "inital"
ex:-
cd "/root/heroku/sam1/practice" && git init && git add . && git commit -am 'Initial Commit'
Initialized empty Git repository in /root/heroku/sam1/practice/.git/
[master (root-commit) c6fac66] Initial Commit
61 files changed, 2056 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
create mode 100644 Gemfile
create mode 100644 Gemfile.backup
create mode 100644 Gemfile.lock
create mode 100644 README
create mode 100644 Rakefile
create mode 100644 app/controllers/application_controller.rb
create mode 100644 app/helpers/application_helper.rb
create mode 100644 app/views/layouts/application.html.erb.backup
create mode 100644 app/views/sitemap/index.xml.builder
create mode 100644 autotest/autotest.rb
create mode 100644 autotest/discover.rb
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/i18n-js.yml
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/secret_token.rb
create mode 100644 config/initializers/session_store.rb
create mode 100644 config/locales/en.yml
create mode 100644 config/routes.rb
create mode 100644 config/settings.rb
create mode 100644 db/migrate/20110307092324_create_refinerycms_core_schema.rb
create mode 100644 db/migrate/20110307092325_add_locale_to_slugs.rb
create mode 100644 db/migrate/20110307092326_create_refinerycms_settings_schema.rb
create mode 100644 db/migrate/20110307092327_add_value_type_to_refinery_settings.rb
create mode 100644 db/migrate/20110307092328_create_refinerycms_authentication_schema.rb
create mode 100644 db/migrate/20110307092329_add_missing_indexes_to_roles_users.rb
create mode 100644 db/migrate/20110307092330_change_to_devise_users_table.rb
create mode 100644 db/migrate/20110307092331_add_remember_created_at_to_users.rb
create mode 100644 db/migrate/20110307092332_create_refinerycms_images_schema.rb
create mode 100644 db/migrate/20110307092333_create_refinerycms_pages_schema.rb
create mode 100644 db/migrate/20110307092334_translate_page_plugin.rb
create mode 100644 db/migrate/20110307092335_remove_cached_slug_from_pages.rb
create mode 100644 db/migrate/20110307092336_create_refinerycms_resources_schema.rb
create mode 100644 db/schema.rb
create mode 100644 db/seeds.rb
create mode 100644 db/seeds/pages.rb
create mode 100644 lib/tasks/.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/images/rails.png
create mode 100644 public/index.html.backup
create mode 100644 public/javascripts/.gitkeep
create mode 100644 public/javascripts/admin.js
create mode 100644 public/javascripts/application.js
create mode 100644 public/robots.txt
create mode 100644 public/stylesheets/.gitkeep
create mode 100644 public/stylesheets/application.css
create mode 100644 public/stylesheets/formatting.css
create mode 100644 public/stylesheets/home.css
create mode 100644 public/stylesheets/theme.css
create mode 100755 script/rails
create mode 100644 vendor/plugins/.gitkeep
8)---- Creating Heroku app..
go to project home directry and enter command
heroku create
ex:-
cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S heroku create
Creating high-mountain-434.... done
http://high-mountain-434.heroku.com/ | git@heroku.com:high-mountain-434.git
Git remote heroku added
9)--- Pushing to Heroku (this takes time, be patient)..
go to project home directry and enter command
git push heroku master
ex:-
Running: cd "/root/heroku/sam1/practice" && git push heroku master
Enter passphrase for key '/root/.ssh/id_rsa':
Counting objects: 86, done.
Compressing objects: 100% (75/75), done.
Writing objects: 100% (86/86), 36.46 KiB, done.
Total 86 (delta 4), reused 0 (delta 0)
-----> Heroku receiving push
-----> Rails app detected
-----> Configure Rails to log to stdout
Installing rails_log_stdout... done
-----> Gemfile detected, running Bundler version 1.0.7
Unresolved dependencies detected; Installing...
Using --without development:test
Fetching source index for http://rubygems.org/
Installing rake (0.8.7)
Installing abstract (1.0.0)
Installing activesupport (3.0.5)
Installing builder (2.1.2)
Installing i18n (0.5.0)
Installing activemodel (3.0.5)
Installing erubis (2.6.6)
Installing rack (1.2.1)
Installing rack-mount (0.6.13)
Installing rack-test (0.5.7)
Installing tzinfo (0.3.24)
Installing actionpack (3.0.5)
Installing mime-types (1.16)
Installing polyglot (0.3.1)
Installing treetop (1.4.9)
Installing mail (2.2.15)
Installing actionmailer (3.0.5)
Installing arel (2.0.9)
Installing activerecord (3.0.5)
Installing activeresource (3.0.5)
Installing acts_as_indexed (0.7.1)
Installing xml-simple (1.0.14)
Installing aws-s3 (0.6.2)
Installing babosa (0.2.2)
Installing bcrypt-ruby (2.1.4) with native extensions
Installing warden (1.0.3)
Installing devise (1.1.7)
Installing dragonfly (0.8.2)
Installing friendly_id_globalize3 (3.2.1)
Installing globalize3 (0.1.0.beta)
Installing moretea-awesome_nested_set (1.4.3.1)
Installing rack-cache (1.0)
Using bundler (1.0.7)
Installing thor (0.14.6)
Installing railties (3.0.5)
Installing rails (3.0.5)
Installing rdoc (3.5.3)
Installing refinerycms-base (0.9.9.4)
Installing refinerycms-generators (0.9.9.6)
Installing refinerycms-settings (0.9.9.4)
Installing truncate_html (0.5.0)
Installing will_paginate (3.0.pre2)
Installing refinerycms-core (0.9.9.4)
Installing refinerycms-authentication (0.9.9.4)
Installing refinerycms-dashboard (0.9.9.4)
Installing refinerycms-images (0.9.9.4)
Installing refinerycms-pages (0.9.9.4)
Installing refinerycms-resources (0.9.9.4)
Installing refinerycms (0.9.9.4)
Installing routing-filter (0.2.3)
Installing refinerycms-i18n (0.9.9.10)
Installing sqlite3 (1.3.3) with native extensions
Your bundle is complete! It was installed into ./.bundle/gems/
Compiled slug size is 6.1MB
-----> Launching... done
http://high-mountain-434.heroku.com deployed to Heroku
To git@heroku.com:high-mountain-434.git
* [new branch] master -> master
10)---Setting up the Heroku database..
go to project home directry and enter command
heroku db:setup
ex:-
cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S heroku rake db:setup
stspqlmqld already exists
(in /app/4dbd136d-29e2-4482-8a9c-99725dfedcde/home)
-- create_table("images", {:force=>true})
-> 0.0488s
-- create_table("page_part_translations", {:force=>true})
-> 0.0327s
-- add_index("page_part_translations", ["page_part_id"], {:name=>"index_page_part_translations_on_page_part_id"})
-> 0.0075s
-- create_table("page_parts", {:force=>true})
-> 0.0096s
-- add_index("page_parts", ["id"], {:name=>"index_page_parts_on_id"})
-> 0.0048s
-- add_index("page_parts", ["page_id"], {:name=>"index_page_parts_on_page_id"})
-> 0.0063s
-- create_table("page_translations", {:force=>true})
-> 0.0161s
-- add_index("page_translations", ["page_id"], {:name=>"index_page_translations_on_page_id"})
-> 0.0049s
-- create_table("pages", {:force=>true})
-> 0.0268s
-- add_index("pages", ["depth"], {:name=>"index_pages_on_depth"})
-> 0.0443s
-- add_index("pages", ["id"], {:name=>"index_pages_on_id"})
-> 0.0060s
-- add_index("pages", ["lft"], {:name=>"index_pages_on_lft"})
-> 0.0293s
-- add_index("pages", ["parent_id"], {:name=>"index_pages_on_parent_id"})
-> 0.0074s
-- add_index("pages", ["rgt"], {:name=>"index_pages_on_rgt"})
-> 0.0072s
-- create_table("refinery_settings", {:force=>true})
-> 0.0170s
-- add_index("refinery_settings", ["name"], {:name=>"index_refinery_settings_on_name"})
-> 0.0063s
-- create_table("resources", {:force=>true})
-> 0.0102s
-- create_table("roles", {:force=>true})
-> 0.0066s
-- create_table("roles_users", {:force=>true, :id=>false})
-> 0.0025s
-- add_index("roles_users", ["role_id", "user_id"], {:name=>"index_roles_users_on_role_id_and_user_id"})
-> 0.0383s
-- add_index("roles_users", ["user_id", "role_id"], {:name=>"index_roles_users_on_user_id_and_role_id"})
-> 0.0185s
-- create_table("slugs", {:force=>true})
-> 0.1775s
-- add_index("slugs", ["locale"], {:name=>"index_slugs_on_locale"})
-> 0.0242s
-- add_index("slugs", ["name", "sluggable_type", "scope", "sequence"], {:unique=>true, :name=>"index_slugs_on_n_s_s_and_s"})
-> 0.0367s
-- add_index("slugs", ["sluggable_id"], {:name=>"index_slugs_on_sluggable_id"})
-> 0.0065s
-- create_table("user_plugins", {:force=>true})
-> 0.0083s
-- add_index("user_plugins", ["name"], {:name=>"index_user_plugins_on_title"})
-> 0.0090s
-- add_index("user_plugins", ["user_id", "name"], {:unique=>true, :name=>"index_unique_user_plugins"})
-> 0.0057s
-- create_table("users", {:force=>true})
-> 0.0093s
-- add_index("users", ["id"], {:name=>"index_users_on_id"})
-> 0.0047s
-- initialize_schema_migrations_table()
-> 0.0289s
-- assume_migrated_upto_version(20110307092336, "db/migrate")
-> 0.0851s
Loading db/seeds/pages.rb
11)---Restarting servers...
Running: cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S heroku restart
App processes restarted
12)--- Now you can launch your webserver using:
cd /root/heroku/sam1/practice
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
13)--- 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
Thanks for installing Refinery, enjoy creating your new application!
---------
------------------------------------------------------------------------------------------------------------------------
14)------clone from repositery---------------------
git clone giturl
ex:-git clone git@heroku.com:hollow-lightning-765.git
15)-----set database:-
rake db:setup
16)--- Place the heroku application in maintance mode
heroku maintenance:on
17)----after you can put in application mode by the command
heroku maintenance:off
###################### Working with git & heoku in Refinery cms #####################
1)--prerequesits
first complete all 9 steps listed in Prerequsits for Refinerycms file
othrwise check 1)ruby is working
2)check rails is working
3)check database and that database gem is working
4)check Image magic is working
5)check Git is working
6)check RVM is working
7)check refinerycms is working
2)-- creating refinerycms project
you can create project by the command
refinerycms project_name
ex:-
refinerycms practice1 //enter command in command promt
create log/development.log
create log/test.log
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 public/images
create public/images/rails.png
create public/stylesheets
create public/stylesheets/.gitkeep
create public/javascripts
create public/javascripts/.gitkeep
create public/javascripts/application.js
create script
create script/rails
create tmp
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create vendor/plugins
create vendor/plugins/.gitkeep
---------
Refinery successfully installed in '/root/heroku/sam1/practice'!
3)--- Installing gem requirements using bundler..
go to project home directry and enter command
bundle install
ex:-
cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S bundle install
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using abstract (1.0.0)
Using activesupport (3.0.5)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.5)
Using erubis (2.6.6)
Using rack (1.2.1)
Using rack-mount (0.6.13)
Using rack-test (0.5.7)
Using tzinfo (0.3.24)
Using actionpack (3.0.5)
Using mime-types (1.16)
Using polyglot (0.3.1)
Using treetop (1.4.9)
Using mail (2.2.15)
Using actionmailer (3.0.5)
Using arel (2.0.9)
Using activerecord (3.0.5)
Using activeresource (3.0.5)
Using acts_as_indexed (0.7.1)
Using xml-simple (1.0.14)
Using aws-s3 (0.6.2)
Using babosa (0.2.2)
Using bcrypt-ruby (2.1.4)
Using bundler (1.0.10)
Using warden (1.0.3)
Using devise (1.1.7)
Using dragonfly (0.8.2)
Using friendly_id_globalize3 (3.2.1)
Using globalize3 (0.1.0.beta)
Using moretea-awesome_nested_set (1.4.3.1)
Using rack-cache (1.0)
Using thor (0.14.6)
Using railties (3.0.5)
Using rails (3.0.5)
Using rdoc (3.5.3)
Using refinerycms-base (0.9.9.4)
Using refinerycms-generators (0.9.9.6)
Using refinerycms-settings (0.9.9.4)
Using truncate_html (0.5.0)
Using will_paginate (3.0.pre2)
Using refinerycms-core (0.9.9.4)
Using refinerycms-authentication (0.9.9.4)
Using refinerycms-dashboard (0.9.9.4)
Using refinerycms-images (0.9.9.4)
Using refinerycms-pages (0.9.9.4)
Using refinerycms-resources (0.9.9.4)
Using refinerycms (0.9.9.4)
Using routing-filter (0.2.3)
Using refinerycms-i18n (0.9.9.10)
Using sqlite3 (1.3.3)
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
4)--- Creating a new database..
go to project home directry and enter command
rake -f db:create
ex:-
cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S rake -f "/root/heroku/sam1/practice/Rakefile" db:create
db/test.sqlite3 already exists
db/development.sqlite3 already exists
(in /root/heroku/sam1/practice)
5)---give external rails modeule suport
go to project home directry and enter command
rails g refinerycms
ex:-
cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S rails generate refinerycms
create public/index.html.backup
remove public/index.html
create app/views/layouts/application.html.erb.backup
remove app/views/layouts/application.html.erb
create public/stylesheets/application.css
create public/stylesheets/formatting.css
create public/stylesheets/home.css
create public/stylesheets/theme.css
create public/javascripts/admin.js
append config/environments/development.rb
append config/environments/test.rb
append config/environments/production.rb
append .gitignore
append db/seeds.rb
create db/migrate/20110307092324_create_refinerycms_core_schema.rb
create db/migrate/20110307092325_add_locale_to_slugs.rb
create db/migrate/20110307092326_create_refinerycms_settings_schema.rb
create db/migrate/20110307092327_add_value_type_to_refinery_settings.rb
create db/migrate/20110307092328_create_refinerycms_authentication_schema.rb
create db/migrate/20110307092329_add_missing_indexes_to_roles_users.rb
create db/migrate/20110307092330_change_to_devise_users_table.rb
create db/migrate/20110307092331_add_remember_created_at_to_users.rb
create db/migrate/20110307092332_create_refinerycms_images_schema.rb
create db/migrate/20110307092333_create_refinerycms_pages_schema.rb
create db/migrate/20110307092334_translate_page_plugin.rb
create db/migrate/20110307092335_remove_cached_slug_from_pages.rb
create db/seeds/pages.rb
create db/migrate/20110307092336_create_refinerycms_resources_schema.rb
create app/views/sitemap/index.xml.builder
create autotest/autotest.rb
create autotest/discover.rb
create config/database.yml.mysql
create config/database.yml.postgresql
create config/database.yml.sqlite3
create config/i18n-js.yml
create config/initializers/devise.rb
create config/settings.rb
6)---Setting up your development database..
go to project home directry and enter command
rake -f db:migrate
ex:-
cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S rake -f "/root/heroku/sam1/practice/Rakefile" db:migrate
(in /root/heroku/sam1/practice)
== CreateRefinerycmsCoreSchema: migrating ====================================
-- create_table("slugs", {:force=>true})
-> 0.0463s
-- add_index("slugs", ["name", "sluggable_type", "scope", "sequence"], {:name=>"index_slugs_on_n_s_s_and_s", :unique=>true})
-> 0.0390s
-- add_index("slugs", ["sluggable_id"], {:name=>"index_slugs_on_sluggable_id"})
-> 0.0011s
== CreateRefinerycmsCoreSchema: migrated (0.0868s) ===========================
== AddLocaleToSlugs: migrating ===============================================
-- add_column(:slugs, :locale, :string)
-> 0.0015s
-- add_index(:slugs, :locale)
-> 0.0014s
== AddLocaleToSlugs: migrated (0.0030s) ======================================
== CreateRefinerycmsSettingsSchema: migrating ================================
-- create_table("refinery_settings", {:force=>true})
-> 0.0058s
-- add_index("refinery_settings", ["name"], {:name=>"index_refinery_settings_on_name"})
-> 0.0011s
== CreateRefinerycmsSettingsSchema: migrated (0.0070s) =======================
== AddValueTypeToRefinerySettings: migrating =================================
-- add_column("refinery_settings", :form_value_type, :string)
-> 0.0016s
== AddValueTypeToRefinerySettings: migrated (0.0017s) ========================
== CreateRefinerycmsAuthenticationSchema: migrating ==========================
-- create_table("roles_users", {:id=>false, :force=>true})
-> 0.0022s
-- create_table("roles", {:force=>true})
-> 0.0019s
-- create_table("user_plugins", {:force=>true})
-> 0.0025s
-- add_index("user_plugins", ["name"], {:name=>"index_user_plugins_on_title"})
-> 0.0024s
-- add_index("user_plugins", ["user_id", "name"], {:name=>"index_unique_user_plugins", :unique=>true})
-> 0.0016s
-- create_table("users", {:force=>true})
-> 0.0026s
-- add_index("users", ["id"], {:name=>"index_users_on_id"})
-> 0.0008s
== CreateRefinerycmsAuthenticationSchema: migrated (0.1714s) =================
== AddMissingIndexesToRolesUsers: migrating ==================================
-- add_index("roles_users", [:role_id, :user_id])
-> 0.0016s
-- add_index("roles_users", [:user_id, :role_id])
-> 0.0011s
== AddMissingIndexesToRolesUsers: migrated (0.0029s) =========================
== ChangeToDeviseUsersTable: migrating =======================================
-- add_column("users", :current_sign_in_at, :datetime)
-> 0.0014s
-- add_column("users", :last_sign_in_at, :datetime)
-> 0.0008s
-- add_column("users", :current_sign_in_ip, :string)
-> 0.0008s
-- add_column("users", :last_sign_in_ip, :string)
-> 0.0010s
-- add_column("users", :sign_in_count, :integer)
-> 0.0008s
-- add_column("users", :remember_token, :string)
-> 0.0009s
-- add_column("users", :reset_password_token, :string)
-> 0.0011s
-- rename_column("users", :crypted_password, :encrypted_password)
-> 0.1986s
-- rename_column("users", :login, :username)
-> 0.2594s
== ChangeToDeviseUsersTable: migrated (0.4654s) ==============================
== AddRememberCreatedAtToUsers: migrating ====================================
-- add_column(:users, :remember_created_at, :datetime)
-> 0.0014s
== AddRememberCreatedAtToUsers: migrated (0.0015s) ===========================
== CreateRefinerycmsImagesSchema: migrating ==================================
-- create_table("images", {:force=>true})
-> 0.0036s
== CreateRefinerycmsImagesSchema: migrated (0.0042s) =========================
== CreateRefinerycmsPagesSchema: migrating ===================================
-- create_table("page_parts", {:force=>true})
-> 0.0029s
-- add_index("page_parts", ["id"], {:name=>"index_page_parts_on_id"})
-> 0.0010s
-- add_index("page_parts", ["page_id"], {:name=>"index_page_parts_on_page_id"})
-> 0.0012s
-- create_table("pages", {:force=>true})
-> 0.0039s
-- add_index("pages", ["depth"], {:name=>"index_pages_on_depth"})
-> 0.0008s
-- add_index("pages", ["id"], {:name=>"index_pages_on_id"})
-> 0.0009s
-- add_index("pages", ["lft"], {:name=>"index_pages_on_lft"})
-> 0.0011s
-- add_index("pages", ["parent_id"], {:name=>"index_pages_on_parent_id"})
-> 0.0016s
-- add_index("pages", ["rgt"], {:name=>"index_pages_on_rgt"})
-> 0.0017s
== CreateRefinerycmsPagesSchema: migrated (0.0672s) ==========================
== TranslatePagePlugin: migrating ============================================
== TranslatePagePlugin: migrated (1.2704s) ===================================
== RemoveCachedSlugFromPages: migrating ======================================
== RemoveCachedSlugFromPages: migrated (0.0000s) =============================
== CreateRefinerycmsResourcesSchema: migrating ===============================
-- create_table("resources", {:force=>true})
-> 0.0037s
== CreateRefinerycmsResourcesSchema: migrated (0.0042s) ======================
7)---Initializing and committing to git..
go to project home directry and enter command
git init
git add .
git commit -am "inital"
ex:-
cd "/root/heroku/sam1/practice" && git init && git add . && git commit -am 'Initial Commit'
Initialized empty Git repository in /root/heroku/sam1/practice/.git/
[master (root-commit) c6fac66] Initial Commit
61 files changed, 2056 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
create mode 100644 Gemfile
create mode 100644 Gemfile.backup
create mode 100644 Gemfile.lock
create mode 100644 README
create mode 100644 Rakefile
create mode 100644 app/controllers/application_controller.rb
create mode 100644 app/helpers/application_helper.rb
create mode 100644 app/views/layouts/application.html.erb.backup
create mode 100644 app/views/sitemap/index.xml.builder
create mode 100644 autotest/autotest.rb
create mode 100644 autotest/discover.rb
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/i18n-js.yml
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/secret_token.rb
create mode 100644 config/initializers/session_store.rb
create mode 100644 config/locales/en.yml
create mode 100644 config/routes.rb
create mode 100644 config/settings.rb
create mode 100644 db/migrate/20110307092324_create_refinerycms_core_schema.rb
create mode 100644 db/migrate/20110307092325_add_locale_to_slugs.rb
create mode 100644 db/migrate/20110307092326_create_refinerycms_settings_schema.rb
create mode 100644 db/migrate/20110307092327_add_value_type_to_refinery_settings.rb
create mode 100644 db/migrate/20110307092328_create_refinerycms_authentication_schema.rb
create mode 100644 db/migrate/20110307092329_add_missing_indexes_to_roles_users.rb
create mode 100644 db/migrate/20110307092330_change_to_devise_users_table.rb
create mode 100644 db/migrate/20110307092331_add_remember_created_at_to_users.rb
create mode 100644 db/migrate/20110307092332_create_refinerycms_images_schema.rb
create mode 100644 db/migrate/20110307092333_create_refinerycms_pages_schema.rb
create mode 100644 db/migrate/20110307092334_translate_page_plugin.rb
create mode 100644 db/migrate/20110307092335_remove_cached_slug_from_pages.rb
create mode 100644 db/migrate/20110307092336_create_refinerycms_resources_schema.rb
create mode 100644 db/schema.rb
create mode 100644 db/seeds.rb
create mode 100644 db/seeds/pages.rb
create mode 100644 lib/tasks/.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/images/rails.png
create mode 100644 public/index.html.backup
create mode 100644 public/javascripts/.gitkeep
create mode 100644 public/javascripts/admin.js
create mode 100644 public/javascripts/application.js
create mode 100644 public/robots.txt
create mode 100644 public/stylesheets/.gitkeep
create mode 100644 public/stylesheets/application.css
create mode 100644 public/stylesheets/formatting.css
create mode 100644 public/stylesheets/home.css
create mode 100644 public/stylesheets/theme.css
create mode 100755 script/rails
create mode 100644 vendor/plugins/.gitkeep
8)---- Creating Heroku app..
go to project home directry and enter command
heroku create
ex:-
cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S heroku create
Creating high-mountain-434.... done
http://high-mountain-434.heroku.com/ | git@heroku.com:high-mountain-434.git
Git remote heroku added
9)--- Pushing to Heroku (this takes time, be patient)..
go to project home directry and enter command
git push heroku master
ex:-
Running: cd "/root/heroku/sam1/practice" && git push heroku master
Enter passphrase for key '/root/.ssh/id_rsa':
Counting objects: 86, done.
Compressing objects: 100% (75/75), done.
Writing objects: 100% (86/86), 36.46 KiB, done.
Total 86 (delta 4), reused 0 (delta 0)
-----> Heroku receiving push
-----> Rails app detected
-----> Configure Rails to log to stdout
Installing rails_log_stdout... done
-----> Gemfile detected, running Bundler version 1.0.7
Unresolved dependencies detected; Installing...
Using --without development:test
Fetching source index for http://rubygems.org/
Installing rake (0.8.7)
Installing abstract (1.0.0)
Installing activesupport (3.0.5)
Installing builder (2.1.2)
Installing i18n (0.5.0)
Installing activemodel (3.0.5)
Installing erubis (2.6.6)
Installing rack (1.2.1)
Installing rack-mount (0.6.13)
Installing rack-test (0.5.7)
Installing tzinfo (0.3.24)
Installing actionpack (3.0.5)
Installing mime-types (1.16)
Installing polyglot (0.3.1)
Installing treetop (1.4.9)
Installing mail (2.2.15)
Installing actionmailer (3.0.5)
Installing arel (2.0.9)
Installing activerecord (3.0.5)
Installing activeresource (3.0.5)
Installing acts_as_indexed (0.7.1)
Installing xml-simple (1.0.14)
Installing aws-s3 (0.6.2)
Installing babosa (0.2.2)
Installing bcrypt-ruby (2.1.4) with native extensions
Installing warden (1.0.3)
Installing devise (1.1.7)
Installing dragonfly (0.8.2)
Installing friendly_id_globalize3 (3.2.1)
Installing globalize3 (0.1.0.beta)
Installing moretea-awesome_nested_set (1.4.3.1)
Installing rack-cache (1.0)
Using bundler (1.0.7)
Installing thor (0.14.6)
Installing railties (3.0.5)
Installing rails (3.0.5)
Installing rdoc (3.5.3)
Installing refinerycms-base (0.9.9.4)
Installing refinerycms-generators (0.9.9.6)
Installing refinerycms-settings (0.9.9.4)
Installing truncate_html (0.5.0)
Installing will_paginate (3.0.pre2)
Installing refinerycms-core (0.9.9.4)
Installing refinerycms-authentication (0.9.9.4)
Installing refinerycms-dashboard (0.9.9.4)
Installing refinerycms-images (0.9.9.4)
Installing refinerycms-pages (0.9.9.4)
Installing refinerycms-resources (0.9.9.4)
Installing refinerycms (0.9.9.4)
Installing routing-filter (0.2.3)
Installing refinerycms-i18n (0.9.9.10)
Installing sqlite3 (1.3.3) with native extensions
Your bundle is complete! It was installed into ./.bundle/gems/
Compiled slug size is 6.1MB
-----> Launching... done
http://high-mountain-434.heroku.com deployed to Heroku
To git@heroku.com:high-mountain-434.git
* [new branch] master -> master
10)---Setting up the Heroku database..
go to project home directry and enter command
heroku db:setup
ex:-
cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S heroku rake db:setup
stspqlmqld already exists
(in /app/4dbd136d-29e2-4482-8a9c-99725dfedcde/home)
-- create_table("images", {:force=>true})
-> 0.0488s
-- create_table("page_part_translations", {:force=>true})
-> 0.0327s
-- add_index("page_part_translations", ["page_part_id"], {:name=>"index_page_part_translations_on_page_part_id"})
-> 0.0075s
-- create_table("page_parts", {:force=>true})
-> 0.0096s
-- add_index("page_parts", ["id"], {:name=>"index_page_parts_on_id"})
-> 0.0048s
-- add_index("page_parts", ["page_id"], {:name=>"index_page_parts_on_page_id"})
-> 0.0063s
-- create_table("page_translations", {:force=>true})
-> 0.0161s
-- add_index("page_translations", ["page_id"], {:name=>"index_page_translations_on_page_id"})
-> 0.0049s
-- create_table("pages", {:force=>true})
-> 0.0268s
-- add_index("pages", ["depth"], {:name=>"index_pages_on_depth"})
-> 0.0443s
-- add_index("pages", ["id"], {:name=>"index_pages_on_id"})
-> 0.0060s
-- add_index("pages", ["lft"], {:name=>"index_pages_on_lft"})
-> 0.0293s
-- add_index("pages", ["parent_id"], {:name=>"index_pages_on_parent_id"})
-> 0.0074s
-- add_index("pages", ["rgt"], {:name=>"index_pages_on_rgt"})
-> 0.0072s
-- create_table("refinery_settings", {:force=>true})
-> 0.0170s
-- add_index("refinery_settings", ["name"], {:name=>"index_refinery_settings_on_name"})
-> 0.0063s
-- create_table("resources", {:force=>true})
-> 0.0102s
-- create_table("roles", {:force=>true})
-> 0.0066s
-- create_table("roles_users", {:force=>true, :id=>false})
-> 0.0025s
-- add_index("roles_users", ["role_id", "user_id"], {:name=>"index_roles_users_on_role_id_and_user_id"})
-> 0.0383s
-- add_index("roles_users", ["user_id", "role_id"], {:name=>"index_roles_users_on_user_id_and_role_id"})
-> 0.0185s
-- create_table("slugs", {:force=>true})
-> 0.1775s
-- add_index("slugs", ["locale"], {:name=>"index_slugs_on_locale"})
-> 0.0242s
-- add_index("slugs", ["name", "sluggable_type", "scope", "sequence"], {:unique=>true, :name=>"index_slugs_on_n_s_s_and_s"})
-> 0.0367s
-- add_index("slugs", ["sluggable_id"], {:name=>"index_slugs_on_sluggable_id"})
-> 0.0065s
-- create_table("user_plugins", {:force=>true})
-> 0.0083s
-- add_index("user_plugins", ["name"], {:name=>"index_user_plugins_on_title"})
-> 0.0090s
-- add_index("user_plugins", ["user_id", "name"], {:unique=>true, :name=>"index_unique_user_plugins"})
-> 0.0057s
-- create_table("users", {:force=>true})
-> 0.0093s
-- add_index("users", ["id"], {:name=>"index_users_on_id"})
-> 0.0047s
-- initialize_schema_migrations_table()
-> 0.0289s
-- assume_migrated_upto_version(20110307092336, "db/migrate")
-> 0.0851s
Loading db/seeds/pages.rb
11)---Restarting servers...
Running: cd "/root/heroku/sam1/practice" && /usr/local/bin/ruby -S heroku restart
App processes restarted
12)--- Now you can launch your webserver using:
cd /root/heroku/sam1/practice
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
13)--- 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
Thanks for installing Refinery, enjoy creating your new application!
---------
------------------------------------------------------------------------------------------------------------------------
14)------clone from repositery---------------------
git clone giturl
ex:-git clone git@heroku.com:hollow-lightning-765.git
15)-----set database:-
rake db:setup
16)--- Place the heroku application in maintance mode
heroku maintenance:on
17)----after you can put in application mode by the command
heroku maintenance:off
Comments
Post a Comment