ruby on rails - Heroku not mounting Alchemy CMS for Production Environment -


the alchemy cms being mounted inside of config/routes.rb:

rails.application.routes.draw   'about' => 'home#about', :as => 'about'    resources :users   match "signup"       => "users#new",   :via => "get", :as => 'signup'   match "account"      => "users#index", :via => "get", :as => 'account'   match "account/edit" => 'users#edit',  :via => "get", :as => 'edit_account'    resources :sessions, :only => [:new, :create, :destroy]   match "login"  => 'sessions#new',     :via => "get",    :as => 'login'   match "logout" => 'sessions#destroy', :via => "delete", :as => 'logout'    resources :channels    resources :videos   '/videos/:id/:title' => 'videos#show', :as => 'video_by_title'    resources :charges    root 'home#index'    mount alchemy::engine => '/' end 

but, when run git push heroku master, receive output:

-----> ruby app detected -----> compiling ruby/rails -----> using ruby version: ruby-2.1.1 -----> installing dependencies using 1.5.2        running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment        using json (1.8.1)        using i18n (0.6.9)        using atomic (1.1.16)        using erubis (2.7.0)        using rack (1.5.2)        using mime-types (1.25.1)        using polyglot (0.3.4)        using rake (10.2.2)        using arel (5.0.0)        using builder (3.2.2)        using thor (0.19.1)        using hike (1.2.3)        using multi_json (1.9.2)        using addressable (2.3.6)        using tilt (1.4.1)        using browser (0.4.1)        using bundler (1.5.2)        using geocoder (1.1.9)        using referer-parser (0.2.1)        using request_store (1.0.5)        using coffee-script-source (1.7.0)        using execjs (2.0.2)        using chunky_png (1.3.0)        using fssm (0.2.10)        using minitest (5.3.1)        using magiclabs-userstamp (2.1.0)        using non-stupid-digest-assets (1.0.4)        using spinner.rb (0.3.0)        using tvdeyen-handles_sortable_columns (0.1.5)        using bcrypt (3.1.7)        using gravtastic (3.2.6)        using newrelic_rpm (3.6.7.159)        using cancan (1.6.10)        using pg (0.17.1)        using rails_serve_static_assets (0.0.2)        using rails_stdout_logging (0.0.3)        using rdoc (4.1.1)        using sass (3.2.18)        using thread_safe (0.3.1)        using rack-test (0.6.2)        using rest-client (1.6.7)        using treetop (1.4.15)        using dragonfly (1.0.3)        using select2-rails (3.5.4)        using ahoy_matey (0.1.1)        using sprockets (2.11.0)        using coffee-script (2.2.0)        using rails_12factor (0.0.2)        using uglifier (2.5.0)        using tzinfo (1.1.0)        using compass (0.12.4)        using mail (2.5.4)        using activesupport (4.1.0.rc2)        using compass-rails (1.1.7)        using sassy-buttons (0.2.6)        using sdoc (0.4.0)        using intercom-rails (0.2.24)        using actionview (4.1.0.rc2)        using jbuilder (2.0.5)        using actionpack (4.1.0.rc2)        using actionmailer (4.1.0.rc2)        using railties (4.1.0.rc2)        using actionpack-page_caching (1.0.2)        using activemodel (4.1.0.rc2)        using sprockets-rails (2.0.1)        using coffee-rails (4.0.1)        using jquery-rails (3.1.0)        using jquery-ui-rails (4.1.2)        using kaminari (0.15.1)        using active_model_serializers (0.8.1)        using rails-observers (0.1.2)        using activerecord (4.1.0.rc2)        using simple_form (3.0.1)        using turbolinks (2.2.1)        using sass-rails (4.0.2)        using rails (4.1.0.rc2)        using activeresource (4.0.0)        using acts_as_list (0.3.0)        using awesome_nested_set (3.0.0.rc.3)        using acts-as-taggable-on (3.0.2)        using wistia-api (0.2.3) git://github.com/benmorganio/wistia-api.git (at customizations)        using stripe (1.10.2) git://github.com/stripe/stripe-ruby.git (at master)        using alchemy_cms (3.0.0.rc5) git://github.com/magiclabs/alchemy_cms.git (at 3.0-stable)        bundle complete!        gems in groups development , test not installed.        installed ./vendor/bundle        bundle completed (1.99s)        cleaning bundler cache. -----> preparing app rails asset pipeline        running: rake assets:precompile        alchemy not mounted! falling root path (/).        if want change alchemy's mount point, please mount alchemy::engine in config/routes.rb file.        alchemy not mounted! falling root path (/).        if want change alchemy's mount point, please mount alchemy::engine in config/routes.rb file.        asset precompilation completed (5.79s)        cleaning assets        running: rake assets:clean        alchemy not mounted! falling root path (/).        if want change alchemy's mount point, please mount alchemy::engine in config/routes.rb file.        alchemy not mounted! falling root path (/).        if want change alchemy's mount point, please mount alchemy::engine in config/routes.rb file. -----> discovering process types        procfile declares types -> (none)        default types ruby  -> console, rake, web, worker  -----> compressing... done, 44.1mb -----> launching... done, v51 -----> deploy hooks scheduled, check output in logs 

i check logs , telling me alchemy not mounted. telling me table missing.

apr 06 15:56:57 railstv app/web.1:  alchemy not mounted! falling root path (/).  apr 06 15:56:57 railstv app/web.1:  if want change alchemy's mount point, please mount alchemy::engine in config/routes.rb file.  apr 06 15:56:57 railstv app/web.1:  alchemy not mounted! falling root path (/).  apr 06 15:56:57 railstv app/web.1:  if want change alchemy's mount point, please mount alchemy::engine in config/routes.rb file.  apr 06 15:56:57 railstv app/web.1:  ** [newrelic][04/06/14 22:56:57 +0000 2c375776-317d-493d-8088-45b62d5ddc98 (2)] info : reporting to: https://rpm.newrelic.com/accounts/647929/applications/2769574  apr 06 15:56:58 railstv app/web.1:  ** [newrelic][04/06/14 22:56:58 +0000 2c375776-317d-493d-8088-45b62d5ddc98 (2)] info : doing deferred dependency-detection before rack startup  apr 06 15:56:58 railstv app/web.1:  [2014-04-06 22:56:58] info  webrick 1.3.1  apr 06 15:56:58 railstv app/web.1:  [2014-04-06 22:56:58] info  ruby 2.1.1 (2014-02-24) [x86_64-linux]  apr 06 15:56:58 railstv app/web.1:  [2014-04-06 22:56:58] info  webrick::httpserver#start: pid=2 port=9568  apr 06 15:56:59 railstv app/web.1:  started "/" 96.49.148.181 @ 2014-04-06 22:56:59 +0000  apr 06 15:56:59 railstv app/web.1:  processing homecontroller#index html  apr 06 15:56:59 railstv app/web.1:  pg::undefinedtable: error:  relation "alchemy_sites" not exist  apr 06 15:56:59 railstv app/web.1:  line 1: select  "alchemy_sites".* "alchemy_sites"  "alche...  apr 06 15:56:59 railstv app/web.1:                                         ^  apr 06 15:56:59 railstv app/web.1:  : select  "alchemy_sites".* "alchemy_sites"  "alchemy_sites"."host" = 'www.rails.tv'  order "alchemy_sites"."id" asc limit 1  apr 06 15:56:59 railstv app/web.1:  completed 500 internal server error in 29ms  apr 06 15:56:59 railstv app/web.1:  activerecord::statementinvalid (pg::undefinedtable: error:  relation "alchemy_sites" not exist  apr 06 15:56:59 railstv app/web.1:  line 1: select  "alchemy_sites".* "alchemy_sites"  "alche...  apr 06 15:56:59 railstv app/web.1:                                         ^  apr 06 15:56:59 railstv app/web.1:  : select  "alchemy_sites".* "alchemy_sites"  "alchemy_sites"."host" = 'www.rails.tv'  order "alchemy_sites"."id" asc limit 1):  apr 06 15:56:59 railstv app/web.1:    vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql_adapter.rb:815:in `async_exec'  apr 06 15:56:59 railstv app/web.1:    vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql_adapter.rb:815:in `block in exec_no_cache' 

i ran heroku run alchemy:db:seed thinking needed add seed data, output:

running `rake alchemy:db:seed` attached terminal... up, run.5181 ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : starting new relic agent in "production" environment. ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : prevent agent startup add newrelic_enable=false environment variable or modify "production" section of newrelic.yml. ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : reading configuration config/newrelic.yml ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : enabling request sampler. ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : environment: production ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : no known dispatcher detected. ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : application: rails tv ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : installing net instrumentation ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : installing deferred rack instrumentation ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : installing activerecord 4 instrumentation ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : installing rails4 error instrumentation ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : installing rails 4 controller instrumentation ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : installing rails 4 view instrumentation ** [newrelic][04/07/14 08:47:08 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : finished instrumentation alchemy not mounted! falling root path (/). if want change alchemy's mount point, please mount alchemy::engine in config/routes.rb file.  alchemy not mounted! falling root path (/). if want change alchemy's mount point, please mount alchemy::engine in config/routes.rb file.  ** [newrelic][04/07/14 08:47:09 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : reporting to: https://rpm.newrelic.com/accounts/647929/applications/2769574  creating default alchemy site ----------------------------- pg::undefinedtable: error:  relation "alchemy_sites" not exist line 5:                a.attrelid = '"alchemy_sites"'::regclas...                                           ^ :               select a.attname, format_type(a.atttypid, a.atttypmod),                      pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod                 pg_attribute left join pg_attrdef d                   on a.attrelid = d.adrelid , a.attnum = d.adnum                a.attrelid = '"alchemy_sites"'::regclass                  , a.attnum > 0 , not a.attisdropped                order a.attnum  rake aborted! activerecord::statementinvalid: pg::undefinedtable: error:  relation "alchemy_sites" not exist line 5:                a.attrelid = '"alchemy_sites"'::regclas...                                           ^ :               select a.attname, format_type(a.atttypid, a.atttypmod),                      pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod                 pg_attribute left join pg_attrdef d                   on a.attrelid = d.adrelid , a.attnum = d.adnum                a.attrelid = '"alchemy_sites"'::regclass                  , a.attnum > 0 , not a.attisdropped                order a.attnum /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql_adapter.rb:815:in `async_exec' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql_adapter.rb:815:in `block in exec_no_cache' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/abstract_adapter.rb:373:in `block in log' /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.0.rc2/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/abstract_adapter.rb:367:in `log' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql_adapter.rb:815:in `exec_no_cache' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql/database_statements.rb:137:in `exec_query' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql_adapter.rb:969:in `column_definitions' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql/schema_statements.rb:187:in `columns' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/schema_cache.rb:93:in `block in prepare_default_proc' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/schema_cache.rb:44:in `yield' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/schema_cache.rb:44:in `columns' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/model_schema.rb:214:in `columns' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/model_schema.rb:260:in `column_names' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/relation/calculations.rb:221:in `aggregate_column' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/relation/calculations.rb:244:in `execute_simple_calculation' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/relation/calculations.rb:216:in `perform_calculation' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/relation/calculations.rb:111:in `calculate' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/relation/calculations.rb:26:in `count' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/querying.rb:13:in `count' /app/vendor/bundle/ruby/2.1.0/bundler/gems/alchemy_cms-843bddc5f580/lib/alchemy/seeder.rb:20:in `create_default_site' /app/vendor/bundle/ruby/2.1.0/bundler/gems/alchemy_cms-843bddc5f580/lib/alchemy/seeder.rb:12:in `seed!' /app/vendor/bundle/ruby/2.1.0/bundler/gems/alchemy_cms-843bddc5f580/lib/tasks/alchemy/db.rake:10:in `block (3 levels) in <top (required)>' pg::undefinedtable: error:  relation "alchemy_sites" not exist line 5:                a.attrelid = '"alchemy_sites"'::regclas...                                           ^ /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql_adapter.rb:815:in `async_exec' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql_adapter.rb:815:in `block in exec_no_cache' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/abstract_adapter.rb:373:in `block in log' /app/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.0.rc2/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/abstract_adapter.rb:367:in `log' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql_adapter.rb:815:in `exec_no_cache' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql/database_statements.rb:137:in `exec_query' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql_adapter.rb:969:in `column_definitions' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/postgresql/schema_statements.rb:187:in `columns' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/schema_cache.rb:93:in `block in prepare_default_proc' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/schema_cache.rb:44:in `yield' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/connection_adapters/schema_cache.rb:44:in `columns' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/model_schema.rb:214:in `columns' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/model_schema.rb:260:in `column_names' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/relation/calculations.rb:221:in `aggregate_column' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/relation/calculations.rb:244:in `execute_simple_calculation' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/relation/calculations.rb:216:in `perform_calculation' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/relation/calculations.rb:111:in `calculate' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/relation/calculations.rb:26:in `count' /app/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/querying.rb:13:in `count' /app/vendor/bundle/ruby/2.1.0/bundler/gems/alchemy_cms-843bddc5f580/lib/alchemy/seeder.rb:20:in `create_default_site' /app/vendor/bundle/ruby/2.1.0/bundler/gems/alchemy_cms-843bddc5f580/lib/alchemy/seeder.rb:12:in `seed!' /app/vendor/bundle/ruby/2.1.0/bundler/gems/alchemy_cms-843bddc5f580/lib/tasks/alchemy/db.rake:10:in `block (3 levels) in <top (required)>' tasks: top => alchemy:db:seed (see full trace running task --trace) ** [newrelic][04/07/14 08:47:09 +0000 eae2fbac-4623-43e2-95a8-52d6f770591e (2)] info : starting agent shutdown 

i can't seem figure out why not running or booting on production environment...

the alchemy not mounted! falling root path (/). warning seems bug if alchemy not mounted first within config/routes.rb file, because have alchemy mounted , working in production environment on heroku , receive same warning. think problem alchemy not being seeded on heroku production environment.

have run alchemy rake command on heroku server? heroku run rails generate alchemy:elements allow login alchemy admin , create site tree first language provide root page.


Comments

  1. it is very excellent blog and useful article thank you for sharing with us , keep posting Ruby on Rails Online Training Hyderabad

    ReplyDelete

Post a Comment

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -