gemfile

teaching myself rails deploying first app to heroku -failure to upload - sqlite3 and postgre glitch

房东的猫 提交于 2019-12-10 11:27:38
问题 Im teaching myself rails. Im a programmer but not a web programmer. Im going through Michael Hartl's book here It mentions that its a good idea to start deploying your app right from the beginning. I agree. So I got an account on Heroku and went through ther setup etc. Then created my 1st app, git and the works. Then followed all the instructions on Heroku's site. Finally I came to pushing my app up to Heroku using this command: git push heroku master The book says that there could be

Bundle install is not working

青春壹個敷衍的年華 提交于 2019-12-10 03:54:27
问题 I'm developing Ruby on Rails on Windows. Something went wrong with our local network and can't access https://www.rubygems.org, seems like it is blocked or something. But I can access it through http://www.proxyfoxy.com. Below is the result of bundle install : $ bundle install Fetching source index from https://rubygems.org/ Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ Retrying fetcher due to error (3/4): Bundler::HTTPError Could not

How to reduce heroku slug size?

為{幸葍}努か 提交于 2019-12-10 02:20:36
问题 My slug size is 89.5MB which is huge. However the repository size is quite small: $ du -hsc 8.0M . 8.0M total Following this blog post: http://dazedthots.blogspot.com/2011/07/reducing-slug-size-heroku.html , there is a bug on Heroku with changing Gemfiles. Mine has changed several times including git dependencies but now, the only git dependency is "rails_admin". See below: source 'http://rubygems.org' gem 'rails', '~> 3.1.0' gem 'rails-i18n', '~> 0.1.3' gem 'pg', '~> 0.11.0' gem 'rake', '~>

keep getting application error on heroku

风格不统一 提交于 2019-12-08 07:19:12
问题 Since the last commit I made to heroku whenever I try to access my application I keep getting this error "An error occurred in the application and your page could not be served. Please try again in a few moments. If you are the application owner, check your logs for details." So I run heroku logs command and I can't make much sense of the log errors. The most I understand is there is something wrong with the bcrypt gem but I'm not sure what. Any help/solution will be appreciated, thanks. $

Gemfile.lock contains merge conflicts

天涯浪子 提交于 2019-12-06 19:01:07
问题 I just ran git push origin master and got this error after trying to run rails s : Your Gemfile.lock contains merge conflicts. Run `git checkout HEAD -- Gemfile.lock` first to get a clean lock. Neither git checkout HEAD --Gemfile.lock bundle , bundle install , nor bundle update are helping to resolve this issue. Does anyone know what to do to fix this? Gemfile: source 'https://rubygems.org' ruby "2.1.2" gem 'devise' gem 'twilio-ruby', '~> 3.12' # Bundle edge Rails instead: gem 'rails', github

Heroku: Failed to install gems via Bundler

泪湿孤枕 提交于 2019-12-06 11:30:53
I try to push my Rails app to Heroku using git push heroku master -f command and I get this: Total 0 (delta 0), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Ruby app detected remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.0.0 remote: -----> Installing dependencies using 1.9.7 remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment remote: You are trying to install in deployment mode after changing remote: your Gemfile. Run `bundle

teaching myself rails deploying first app to heroku -failure to upload - sqlite3 and postgre glitch

拥有回忆 提交于 2019-12-06 08:16:10
Im teaching myself rails. Im a programmer but not a web programmer. Im going through Michael Hartl's book here It mentions that its a good idea to start deploying your app right from the beginning. I agree. So I got an account on Heroku and went through ther setup etc. Then created my 1st app, git and the works. Then followed all the instructions on Heroku's site. Finally I came to pushing my app up to Heroku using this command: git push heroku master The book says that there could be problems at this stage because the app on my machine is using sqlite3 while Heroku wants postgresql. The book

Rails : gem install vs. gemfile & bundle install

爱⌒轻易说出口 提交于 2019-12-06 04:56:44
问题 What is the exact difference between using: 1- gem install [gemname] and 2- add gem name & version to GemFile and run bundle install ? 回答1: RubyGems is akin to a package manager for Ruby. It's a means by which you can install self-contained libraries to use in your applications. When you use gem install gemname you're installing that gem to the current machine that you're developing on. Bundler is a tool for managing the gems that your application depends on. When you create a Gemfile, you

Bundler could not find compatible versions for gem

天涯浪子 提交于 2019-12-05 11:56:10
问题 I've added a gem 'koala' to my Gemfile and seems to have thrown gem versions out of whack when I run the 'bundle install' command: Bundler could not find compatible versions for gem "faraday": In snapshot (Gemfile.lock): faraday (0.6.1) In Gemfile: koala (~> 1.2.0beta1) depends on faraday (~> 0.7.4) Running `bundle update` will rebuild your snapshot from scratch, using only the gems in your Gemfile, which may resolve the conflict. How can I resolve this conflict? 回答1: Delete the contents of

Bundle install is not working

谁都会走 提交于 2019-12-05 04:29:49
I'm developing Ruby on Rails on Windows. Something went wrong with our local network and can't access https://www.rubygems.org , seems like it is blocked or something. But I can access it through http://www.proxyfoxy.com . Below is the result of bundle install : $ bundle install Fetching source index from https://rubygems.org/ Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ Retrying fetcher due to error (4/4): Bundler::HTTPError Could