Adding rails engine outside the app folder and pushing to heroku - ruby-on-rails

I have a rails app called recipe . And I have a rails engine 'blogo' with this folder.Both recipe and blogo is in a folder 'foodsy'. In my gemfile , blogo is loaded with
gem 'blogo' ,path : '../blogo'
But when I push the app to heroku , I get an error saying
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: The path `/tmp/blogo` does not exist.
remote: Bundler Output: The path `/tmp/blogo` does not exist.
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote:
remote: ! Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy....
remote:
remote: ! Push rejected to secure-gorge-6009.
I think this is because the git initialized in recipe folder doesnt include blogo. If I push it from the foodsy folder I get the following error
remote: ! Push rejected, failed to detect set buildpack heroku/ruby
Because there is no ruby file in the foodsy folder, it gives this error. How can I include the blogo folder in the recipe git ?

Related

"Push rejected, failed to compile Ruby app" installation of decdim on herouku

I'm trying to install decidim (decidim.org) on herouku, I get this error when i make the deploy
remote: You are trying to install in deployment mode after changing
remote: your Gemfile. Run bundle install elsewhere and add the
remote: updated Gemfile.lock to version control.
remote:
remote: The gemspecs for path gems changed
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
this is the end lines of the deploy.
anyone has an answer for this issue?
thanks
Go to the folder where you have your app and try typing the command: bundle install then try pushing to heroku afterwards.

Errors with "git push heroic master", what to do?

So i'm trying to deploy my rails app through heroku. But every time i run "git push heroic master", i run into this. I have searched around, but nothing seems to work. I have tried to "bundle update", "bundle install", but i still get this error when i run "git push heroic master"
Counting objects: 84, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (70/70), done.
Writing objects: 100% (84/84), 20.65 KiB | 1.88 MiB/s, done.
Total 84 (delta 2), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote: Detected buildpacks: Ruby,Node.js
remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.3.4
remote: -----> Installing dependencies using bundler 1.15.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: You are trying to install in deployment mode after changing
remote: your Gemfile. Run `bundle install` elsewhere and add the
remote: updated Gemfile.lock to version control.
remote: The dependencies in your gemfile changed
remote: You have added to the Gemfile:
remote: * pg
remote: Bundler Output: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.1). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
remote: You are trying to install in deployment mode after changing
remote: your Gemfile. Run `bundle install` elsewhere and add the
remote: updated Gemfile.lock to version control.
remote:
remote: The dependencies in your gemfile changed
remote:
remote: You have added to the Gemfile:
remote: * pg
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to secret-mesa-55611.
remote:
To https://git.heroku.com/******
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/*******.git'
It seems that your Gemfile.lock is changed. Try running bundle install after cleaning the Gemfile.lock

Stack overflow push rejected with no reason

I'm trying to push to heroku and it get's to the verifying deploy... step but then rejects the push for no reason:
remote: =====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-ruby.git
remote: =====> Detected Framework: Ruby
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.1.2
remote: -----> Installing dependencies using 1.7.12
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Fetching source index from https://rubygems.org/
remote: Verifying deploy..................................................
remote:
remote: ! Push rejected to <APP_NAME_OMITTED>.
remote:
! [remote rejected] test_botched_deploy -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/APP-NAME-OMITTED.git'
I'm not sure what to google for this. Is there a way to enable a verbose mode for heroku deploys?
Presuming that everything works locally before you push, a good place to start is to make sure you have pushed a current version of your Gemfile and Gemfile.lock.

Could not find thread_safe-0.3.5 in any of the sources

I get this error while running cap production deploy on a Ubuntu 14.04 server.
It seems like a similar issue to here, but I've tried all the answers here but can't get it working Could not find thread_safe-0.3.0 in any of the sources.
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as root#*serveripaddress*: bundle exit status: 7
bundle stdout: Could not find thread_safe-0.3.5 in any of the sources
bundle stderr: Nothing written
SSHKit::Command::Failed: bundle exit status: 7
bundle stdout: Could not find thread_safe-0.3.5 in any of the sources
bundle stderr: Nothing written
Tasks: TOP => deploy:updated => bundler:install
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as root#*serveripaddress*: bundle exit status: 7
bundle stdout: Could not find thread_safe-0.3.5 in any of the sources
bundle stderr: Nothing written
Update: I've tried deploying to Heroku and get a similar error. If anyone has any advice it would be great.
$ git push heroku master
Counting objects: 10017, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (7613/7613), done.
Writing objects: 100% (10017/10017), 22.27 MiB | 87.00 KiB/s, done.
Total 10017 (delta 2426), reused 7631 (delta 1548)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote: Detected buildpacks: Ruby, Node.js
remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.0.0
remote: -----> Installing dependencies using 1.7.12
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Some gems seem to be missing from your vendor/cache directory.
remote: Could not find thread_safe-0.3.5 in any of the sources
remote: Bundler Output: Some gems seem to be missing from your vendor/cache directory.
remote: Could not find thread_safe-0.3.5 in any of the sources
remote: !
remote: ! Failed to install gems via Bundler.
remote: !
remote:
remote: ! Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to mysterious-badlands-3241.
remote:

I can't push my Rails project to heroku, can't find bootstrap-sass

When I try to push my project to Heroku I get this error:
-----> Deleting 3 files matching .slugignore patterns.
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/.......
Fetching gem metadata from https://rubygems.org/..
Could not find bootstrap-sass-2.3.1.1 in any of the sources
!
! Failed to install gems via Bundler.
!
! Heroku push rejected, failed to compile Ruby/rails app
To git#heroku.com:kerbal-space-station.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:kerbal-space-station.git'
However my Gemfile certainly does have that and bundle install locally works fine.
bootstrap-sass 2.3.1.1 was yanked: https://rubygems.org/gems/bootstrap-sass/versions
You should run:
bundle update bootstrap-sass
then commit the new Gemfile.lock and push to heroku
The last version of bootstrap-sass is 2.3.1.0, you're looking for 2.3.1.1 and it doesn't exists.
Check your gemfile and add:
gem 'bootstrap-sass', '2.3.1.0'
you don't need to put version number you can only put
gem 'bootstrap-sass'
then do
bundle update

Resources