Can't link Localhost:3000 Ruby on Rails Page with Heroku - One Month Rails Tutorial -
i not able install ruby on rails 1 month rails mattan griffel tutorial because using ios mavericks (the tutorial 2013). have no idea i'm doing , trying figure out go. able $ git push heroku master without error when tried use link given heroku, did not link localhost:3000 ruby on rails page supposed to.
i have since made changes , fear have dug hole deeper.
demo:omrails demo$ git push heroku master fetching repository, done. counting objects: 20, done. delta compression using 4 threads. compressing objects: 100% (17/17), done. writing objects: 100% (17/17), 1.55 kib | 0 bytes/s, done. total 17 (delta 11), reused 0 (delta 0) -----> ruby app detected -----> compiling ruby/rails -----> using ruby version: ruby-2.0.0 -----> installing dependencies using 1.6.3 running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment using minitest 4.7.5 using multi_json 1.10.1 using i18n 0.6.11 using thread_safe 0.3.4 using tzinfo 0.3.41 using builder 3.1.4 using erubis 2.7.0 using rake 10.3.2 using mime-types 1.25.1 using rack 1.5.2 using polyglot 0.3.5 using activerecord-deprecated_finders 1.0.3 using arel 4.0.2 using coffee-script-source 1.7.1 using execjs 2.2.1 using thor 0.19.1 using hike 1.2.3 using pg 0.17.1 using bundler 1.6.3 using json 1.8.1 using tilt 1.4.1 using activesupport 4.0.0 using coffee-script 2.3.0 using uglifier 2.5.3 using treetop 1.4.15 using activemodel 4.0.0 using mail 2.5.4 using rack-test 0.6.2 using sprockets 2.11.0 using activerecord 4.0.0 using actionpack 4.0.0 using actionmailer 4.0.0 using sprockets-rails 2.0.1 using railties 4.0.0 using jquery-rails 3.1.1 using coffee-rails 4.0.1 using rails 4.0.0 bundle complete! gems in groups development , test not installed. installed ./vendor/bundle bundle completed (0.74s) cleaning bundler cache. removing turbolinks (2.2.2) removing sass (3.2.19) removing rdoc (4.1.1) removing sass-rails (4.0.3) removing jbuilder (1.5.3) removing sdoc (0.4.1) -----> writing config/database.yml read database_url -----> preparing app rails asset pipeline running: rake assets:precompile rake aborted! sprockets::filenotfound: couldn't find file 'turbolinks' (in /tmp/build_d6668242-8173-4c2f-b925- b40112014d6b/app/assets/javascripts/application.js:15) /tmp/build_d6668242-8173-4c2f-b925- b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets- 2.11.0/lib/sprockets/context.rb:106:in `resolve' /tmp/build_d6668242-8173-4c2f-b925- b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets- 2.11.0/lib/sprockets/context.rb:146:in `require_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:217:in `process_require_directive' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:167:in `block in process_directives' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:165:in `each' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:165:in `process_directives' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/directive_processor.rb:99:in `evaluate' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:197:in `block in evaluate' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:194:in `each' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/context.rb:194:in `evaluate' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/processed_asset.rb:12:in `initialize' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in `new' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:374:in `block in build_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:395:in `circular_call_protection' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:373:in `build_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:94:in `block in build_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/caching.rb:58:in `cache_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:93:in `build_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:287:in `find_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:61:in `find_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/bundled_asset.rb:37:in `init_with' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/asset.rb:24:in `from_hash' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/caching.rb:54:in `cache_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:93:in `build_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/base.rb:287:in `find_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/index.rb:61:in `find_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:211:in `block in find_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:257:in `benchmark' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:210:in `find_asset' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:119:in `block in compile' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:118:in `each' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/sprockets/manifest.rb:118:in `compile' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:60:in `block (3 levels) in define' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-2.11.0/lib/rake/sprocketstask.rb:146:in `with_logger' /tmp/build_d6668242-8173-4c2f-b925-b40112014d6b/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:59:in `block (2 levels) in define' tasks: top => assets:precompile (see full trace running task --trace) ! ! precompiling assets failed. ! ! push rejected, failed compile ruby app git@heroku.com:powerful-fjord-2879.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed push refs 'git@heroku.com:powerful-fjord-2879.git' demo:omrails demo$
i not able install ruby on rails 1 month rails mattan griffel tutorial because using ios mavericks (the tutorial 2013)
- try newer tutorial.
- you can install rails on mavericks running
gem install rails. here's date article on doing that.
i tried use link given heroku, did not link localhost:3000 ruby on rails page supposed to
- heroku not supposed link localhost.
- when deploy code computer (localhost) sending code computer (some other host) , able access app via other computer's domain name (your-app.herokuapp.com). had deploy succeeded, heroku have output in last line in terminal domain can view deployed app in e.g. powerful-fjord.herokuapp.com.
- to recap: when run
rails serveron computer, rails spin it's builtin web server , allow view web app @localhost:3000(this url type in browser's address bar). when deploy heroku, computer running webserver , can view @ domain heroku gives (or 1 configure later on) typicallypowerful-fjord.herokuapp.comor whatever named app when ranheroku create my-app-name-here.
finally, error preventing git push heroku master command succeeding hinted line in output:
sprockets::filenotfound: couldn't find file 'turbolinks' this means rails app missing javascript file named turbolinks.js. might need add turbolinks gemfile: gem 'turbolinks' or remove line application.js: *= require turbolinks. , deploy should work.
as far date tutorials, aforementioned site railapps source. here's tutorial: https://tutorials.railsapps.org/rails-tutorial
Comments
Post a Comment