I finished my app thats running with Ruby on Rails on my local machine. Now I want to finally deploy it fallowing a video from Youtube (https://www.youtube.com/watch?v=xpYpaRUFzTI&t=888s).
When I type
cap production deploy
I get following error:
#<Thread:0x0000010ea8efd910 C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/ed25519_loader.rb:21:in `raiseUnlessLoaded': OpenSSH keys only supported if ED25519 is available (NotImplementedError)
net-ssh requires the following gems for ed25519 support:
* ed25519 (>= 1.2, < 2.0)
* bcrypt_pbkdf (>= 1.0, < 2.0)
See https://github.com/net-ssh/net-ssh/issues/565 for more information
LoadError : "cannot load such file -- bcrypt_pbkdf_ext"
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/key_factory.rb:200:in `classify_key'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/key_factory.rb:51:in `load_data_private_key'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/key_factory.rb:42:in `load_private_key'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/key_manager.rb:167:in `sign'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/methods/publickey.rb:62:in `authenticate_with'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/methods/publickey.rb:20:in `block in authenticate'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/key_manager.rb:132:in `block in each_identity'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/key_manager.rb:129:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/key_manager.rb:129:in `each_identity'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/methods/publickey.rb:19:in `authenticate'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/session.rb:86:in `block in authenticate'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/session.rb:72:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh/authentication/session.rb:72:in `authenticate'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/net-ssh-6.1.0/lib/net/ssh.rb:255:in `start'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sshkit-1.21.2/lib/sshkit/backends/connection_pool.rb:63:in `call'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sshkit-1.21.2/lib/sshkit/backends/connection_pool.rb:63:in `with'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sshkit-1.21.2/lib/sshkit/backends/netssh.rb:177:in `with_ssh'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sshkit-1.21.2/lib/sshkit/backends/netssh.rb:130:in `execute_command'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:148:in `block in create_command_and_execute'
from <internal:kernel>:90:in `tap'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:148:in `create_command_and_execute'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:61:in `test'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/capistrano-rbenv-2.2.0/lib/capistrano/tasks/rbenv.rake:10:in `block (3 levels) in <top (required)>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:31:in `instance_exec'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sshkit-1.21.2/lib/sshkit/backends/abstract.rb:31:in `run'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/sshkit-1.21.2/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
(Backtrace restricted to imported tasks)
cap aborted!
NotImplementedError: OpenSSH keys only supported if ED25519 is available
net-ssh requires the following gems for ed25519 support:
* ed25519 (>= 1.2, < 2.0)
* bcrypt_pbkdf (>= 1.0, < 2.0)
See https://github.com/net-ssh/net-ssh/issues/565 for more information
LoadError : "cannot load such file -- bcrypt_pbkdf_ext"
Tasks: TOP => rbenv:validate
(See full trace by running task with --trace)
My Gemfile:
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby '3.0.3'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 6.1.4', '>= 6.1.4.1'
gem 'pg'
# Use Puma as the app server
gem 'puma', '~> 5.0'
# Use SCSS for stylesheets
gem 'sass-rails', '>= 6'
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
gem 'webpacker', '~> 5.0'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.7'
gem 'rbnacl', '< 5.0', :require => false
#gem 'rbnacl-libsodium', :require => false
gem 'bcrypt_pbkdf', '< 2.0', :require => false
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'
gem 'ed25519', '>= 1.2', '< 2.0'
# Use Active Storage variant
#gem 'image_processing', '~> 1.2'
#gem 'activestorage-validations'
# Reduces boot times through caching; required in config/boot.rb
gem 'bootsnap', '>= 1.4.4', require: false
#devise
gem 'devise', '~> 4.8'
#activeadmin
gem 'activeadmin', '~> 2.9'
#ransack
gem 'ransack', '~> 2.5'
#pagination
gem 'kaminari', '~> 1.2', '>= 1.2.2'
gem 'capistrano', '~> 3.11'
gem 'capistrano-passenger', '~> 0.2.0'
gem 'capistrano-rails', '~> 1.4'
gem 'capistrano-rbenv', '~> 2.1', '>= 2.1.4'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
end
group :development do
# Access an interactive console on exception pages or by calling 'console' anywhere in the code.
gem 'web-console', '>= 4.1.0'
# Display performance information such as SQL time and flame graphs for each request in your browser.
# Can be configured to work on production as well see: https://github.com/MiniProfiler/rack-mini-profiler/blob/master/README.md
gem 'rack-mini-profiler', '~> 2.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3', '~> 1.4'
end
group :test do
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '>= 3.26'
gem 'selenium-webdriver'
# Easy installation and use of web drivers to run system tests with browsers
gem 'webdrivers'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
It shows me in the error message, that I showld add both of those gems. But then I still get the same error message. Does somebody know how I can solve that probleme? That would realy help me a lot. Thank you so much for your time reading this. I hope I described my problem as precise as possible.
If you are using mac, then run the following command. It will fix this issue.
ssh-add
Related
I have included gem 'actionpack' in my gemfile. I then run bundle install.
When I run 'gem list' I see 'actionpack'.
However when I go to /Users/sharatakasapu/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0 I don't see a folder for actionpack.
I keep getting this error
Sharats-MacBook-Pro:reflections sharatakasapu$ rails s
/Users/sharatakasapu/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/dependency.rb:308:in `to_specs': Could not find 'actionpack' (= 5.1.7) among 275 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/Users/sharatakasapu/.gem/ruby/2.4.0:/Users/sharatakasapu/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0', execute `gem env` for more information
from /Users/sharatakasapu/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/specification.rb:1439:in `block in activate_dependencies'
from /Users/sharatakasapu/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/specification.rb:1428:in `each'
from /Users/sharatakasapu/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/specification.rb:1428:in `activate_dependencies'
from /Users/sharatakasapu/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/specification.rb:1410:in `activate'
from /Users/sharatakasapu/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems.rb:299:in `block in activate_bin_path'
from /Users/sharatakasapu/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems.rb:299:in `synchronize'
from /Users/sharatakasapu/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems.rb:299:in `activate_bin_path'
from /Users/sharatakasapu/.rbenv/versions/2.4.0/bin/rails:22:in `<main>'
Here is my gemfile
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
gem 'actionpack'
gem 'kaminari'
gem 'friendly_id', '~> 5.2.4'
gem 'devise'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.1.6'
# Use postgresql as the database for Active Record
gem 'pg', '>= 0.18', '< 2.0'
# Use Puma as the app server
gem 'puma', '~> 3.7'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
gem 'acts-as-taggable-on', '~> 6.0'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
How do I address this?
I am having trouble getting rails to run on my mac. This is the output that I get. It seems to be a problem with my packages or the Ruby or rvm version, but I don't know how to resolve it. I end up having to deploy to Heroku every time to test something.
Pauls-MacBook-Pro:heroku paulyang$ rails console
/Users/paulyang/.rvm/gems/ruby-2.3.3/gems/spring-2.0.1/lib/spring/application.rb:108:in `ensure in preload': undefined method `application' for Rails:Module (NoMethodError)
from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/spring-2.0.1/lib/spring/application.rb:112:in `preload'
from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/spring-2.0.1/lib/spring/application.rb:143:in `serve'
from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/spring-2.0.1/lib/spring/application.rb:131:in `block in run'
from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/spring-2.0.1/lib/spring/application.rb:125:in `loop'
from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/spring-2.0.1/lib/spring/application.rb:125:in `run'
from /Users/paulyang/.rvm/gems/ruby-2.3.3/gems/spring-2.0.1/lib/spring/application/boot.rb:19:in `<top (required)>'
from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /usr/local/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
This is the gemfile I'm using for my Rails app:
source 'https://rubygems.org'
ruby '2.3.3'
gem 'sinatra'
# sinatra needs old tilt version: http://stackoverflow.com/questions/20648394/moduletemplates-uninitialized-constant-tiltcompilesite-nameerror-using
#https://groups.google.com/forum/#!topic/sinatrarb/mAtn7AZBVmY
gem 'tilt', '~> 1.4.1', group: :production
gem 'rest-client'
gem 'sequel'
gem 'sqlite3', group: :development
gem 'pg', '~> 0.18', group: :development
gem 'cowsay'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.5'
# Use postgresql as the database for Active Record
gem 'pg', '~> 0.18', group: :production
gem 'rails_12factor', group: :production
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring', group: :development
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
gem 'puma'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# for auto-renewable subscription validation
# https://github.com/gabrielgarza/monza/blob/master/README.md
gem 'monza'
gem 'itunes-receipt'
Any help would be great.
I'm trying to create a ruby on rails app which can be hosted on Openshift, but i encounter the following error when i try to use the rails g mongoid:config command through terminal. I've tried everything i found on stackoverflow but the error still persists! what am i doing wrong?
here is the error:
/home/themis/.rvm/gems/ruby-2.3.0/gems/activesupport-4.0.3/lib/active_support/values/time_zone.rb:282: warning: circular argument reference - now
/home/themis/rails4/config/application.rb:6:in `require': cannot load such file -- active_job/railtie (LoadError)
from /home/themis/rails4/config/application.rb:6:in `<top (required)>'
from /home/themis/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application.rb:82:in `require'
from /home/themis/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application.rb:82:in `preload'
from /home/themis/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application.rb:143:in `serve'
from /home/themis/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application.rb:131:in `block in run'
from /home/themis/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application.rb:125:in `loop'
from /home/themis/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application.rb:125:in `run'
from /home/themis/.rvm/gems/ruby-2.3.0/gems/spring-1.7.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /home/themis/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /home/themis/.rvm/rubies/ruby-2.3.0/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from -e:1:in `<main>'
and my Gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.3'
gem 'mongoid', git: 'https://github.com/mongoid/mongoid.git'
gem 'twitter-bootstrap-rails'
gem 'less-rails'
# Use Puma as the app server
gem 'puma', '~> 3.0'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2'
# See https://github.com/rails/execjs#readme for more supported runtimes
gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
gem "rspec"
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 3.0'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platform: :mri
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console'
gem 'listen', '~> 3.0.5'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
This is an ActiveSupport bug (thus a Rails bug).
Line 282 at activesupport-4.0.3/lib/active_support/values/time_zone.rb is
def parse(str, now=now)
# ...
end
And line 308 of the same file is
def now
# ...
end
The problem is at the default param now=now, which ruby struggles to understand whether the latter now is a method call or is just a local variable (the param itself).
If you modify the now=now to now=now(), then all is fine.
This bug is fixed in Rails 4.0.6.
Here is Heroku logs
Local everything work just fine
2016-02-21T21:48:36.961997+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails.rb:11:in `<top (required)>'
2016-02-21T21:48:36.961999+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/commands/server.rb:4:in `<top (required)>'
2016-02-21T21:48:36.962004+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:74:in `server'
2016-02-21T21:48:36.962000+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:128:in `require'
2016-02-21T21:48:36.962006+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
2016-02-21T21:48:37.595114+00:00 heroku[web.1]: State changed from starting to crashed
Ruby -v 2.1.5
Rails -v 4.1.8
Gemfile
source 'https://rubygems.org'
ruby '2.1.5'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.8'
# Use sqlite3 as the database for Active Record
group :development, :test do
gem 'sqlite3'
gem 'rspec-rails', '~> 3.0'
gem 'factory_girl_rails', '~> 4.0'
gem 'guard'
gem 'guard-rspec', require: false
gem 'spork-rails'
gem 'guard-spork'
gem 'wdm'
end
gem 'active_link_to'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'will_paginate', '~> 3.0.6'
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin]
group :production do
gem 'rails_12factor'
gem 'pg'
end
gem 'devise'
gem 'cancancan'
gem 'stripe'
gem 'jruby-openssl'
gem 'highline', '~> 1.7', '>= 1.7.8'
gem 'byebug'
gem 'brakeman'
I'm new for Ror, So any help will be great
Working from Windows
StackOverflow asking me to add more details, but I have no idea what to add here, so I'm just writing this text
You certainly resently switch from sqlite to pg.
[heroku doc sayz] A crashed web dyno or a boot timeout on the web dyno will present this error.
Sqlite is a "dummy" db , it's permissive as hell you may have make tiny mistakes here and there , is it workin with pg locally?
Does anyone has any idea why bundler is throwing this error.
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/source/rubygems.rb:158:in `normalize_uri': The source must be an absolute URI (ArgumentError)
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/source/rubygems.rb:129:in `add_remote'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/dsl.rb:121:in `source'
/home/arrc/arrC/rails/Gemfile:1:in `eval_gemfile'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/dsl.rb:30:in `instance_eval'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/dsl.rb:30:in `eval_gemfile'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/dsl.rb:9:in `evaluate'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/definition.rb:26:in `build'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler.rb:152:in `definition'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/cli.rb:255:in `install'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/vendor/thor/command.rb:27:in `run'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_command'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/vendor/thor.rb:363:in `dispatch'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/vendor/thor/base.rb:438:in `start'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/cli.rb:10:in `start'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/bin/bundle:22:in `block in <main>'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/lib/bundler/friendly_errors.rb:5:in `with_friendly_errors'
/home/arrc/.rvm/gems/ruby-2.1.0#global/gems/bundler-1.5.0/bin/bundle:22:in `<main>'
There was an error in your Gemfile, and Bundler cannot continue.
I thought this error was version specific so i uninstalled bundler 1.5.0 but I'm still getting this same error in version 1.3.5 (bundler).
Standard rails 4.0.2 generated Gemfile
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 1.2'
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
# Use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.1.2'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]
Try to remove indent in your first line of Gemfile, otherwise create an issue in Bundler github repository.