Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7739801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:36:45+00:00 2026-06-01T08:36:45+00:00

If a ruby app is running on Heroku, is it possible to pull changes

  • 0

If a ruby app is running on Heroku, is it possible to pull changes from Github and run a rake task? I’ve added some code to call exec git pull when an endpoint is requested, however the Heroku logs just tell me that the “App has crashed”. Perhaps Heroku doesn’t allow apps to do this?

Here is my setup:

  • An Octopress blog running on Heroku
  • A Heroku cedar stack with a heroku-buildpack-ruby-octopress

What I’m attempting to do is expose an endpoint via Sinatra to run the following process:

  • Github receives blog post changes
  • Github executes the post-receive hook to hit an URL
  • App on Heroku receives URL request and does a git pull and rake generate
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T08:36:47+00:00Added an answer on June 1, 2026 at 8:36 am

    You won’t be able to do this because the application you have running on a dyno and the Git repo are two different things.

    When you push to Heroku, you’re pushing into Git. This repo is then used to generate a ‘slug’ which is then deployed to dynos. This slug contains your application and all it’s dependencies, not the entire git repo.

    Therefore, running any Git commands from your application code will not work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am running heroku run rake db:migrate after I have deployed my app to
Possible Duplicate: Rails 2.3-style plugins and deprecation warnings running task in Heroku A few
I'm having some hard time running my app on Heroku - The app runs
I have a ruby on rails app running a server and sometimes it needs
I have a Ruby on Rails app running on my server, and I can't
I'm looking at ways to deploy a Ruby on Rails app (running on JRuby)
I'd like to be able to send a Ruby app to some colleagues without
I follow the instructions on http://devcenter.heroku.com/articles/play to get my Play! (Java) app running on
I am trying to get my app up and running on heroku. However once
I am running a Ruby 1.8.6, Rails 1.2 application on Heroku. I am using

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.