Tag: ruby on rails

Is it possible to trigger a redeployment from Heroku?

I’m trying to get to a point where I can make and deploy emergency changes to my Heroku apps from mobile devices. Using CodeHub (ios) I’m able to make changes to the GitHib repo, and using Nezumi (ios) I’m able to access the logs, restart the application and even gain console access to my app. […]

How can I deploy 2 rails apps from a single Git repo?

I have 2 rails applications that live inside the same git repo. There is a shared folder where common logic lives. – app_1 – shared – app_2 The shared folder is really just a symlink to the appropriate places inside the app_1 folder. There is also a shared_public folder that is symlinked to app_1/public/files and […]

Rails: access git email config

We have a mail interceptor in our local environment, so that email aren’t sent to the actual mail addresses, but a copy is sent to the developpers (devs@project.com). It is cool, except that all the developpers receive the mails of the whole team, which can be annoying, disturbing. I’d like to filter with each one […]

How to deploy with Capistrano 3 to a server, which can't access the scm?

I would like to deploy a rails application with Capistrano 3. This rails application is under version control (git), but the server I want to deploy to can’t access this git repository, because it’s only accessible from the local network. I’ve used Capistrano 2 a few times in this scenario by using set :deploy_via, :copy, […]

Heroku Login Error in Git Bash

In Git Bash, it does not recognize the file or directory. I also have Ruby 1.9.3 installed but the output is showing 1.9.2 $ heroku login /c/Program Files (x86)/Heroku/bin/heroku: line 4: /c/Program Files (x86)/Heroku/ruby-1.9. 2/bin/ruby: No such file or directory /c/Program Files (x86)/Heroku/bin/heroku: line 4: exec: /c/Program Files (x86)/Heroku/rub y-1.9.2/bin/ruby: cannot execute: No such file […]

SSH Online Code Editor Terminal Security Issue

I am currently going through a tutorial with Ruby On Rails through a third party code editor. It’s currently walking me through through the process of getting my stuff onto a git repository and I have set up an SSH key from within the terminal of the online code editor itself. (not my computers code […]

Permanently rollback Heroku commit (i.e. roll back, “delete” later commits, and sync dev env)

I have a rails app that I have deployed to Heroku. I commited with v269 (origin master), which was stable and did not have any issues. I made a few more commits and then discovered various errors that I was unable to fix despite my best effort. I rolled back to v269 and am now […]

Precompiling assets failed, pre-receive hook declined

rake aborted! remote: NoMethodError: undefined method `configure’ for #<LearnRails::Application:0x007f440b80c9c8> remote: /tmp/build_c58e817396acd7fe215a3b1c6bf3b6a5/config/environments/production.rb:1:in `<top (required)>’ remote: /tmp/build_c58e817396acd7fe215a3b1c6bf3b6a5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require’ remote: /tmp/build_c58e817396acd7fe215a3b1c6bf3b6a5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `block in require’ remote: /tmp/build_c58e817396acd7fe215a3b1c6bf3b6a5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:214:in `load_dependency’ remote: /tmp/build_c58e817396acd7fe215a3b1c6bf3b6a5/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.1/lib/active_support/dependencies.rb:229:in `require’ remote: /tmp/build_c58e817396acd7fe215a3b1c6bf3b6a5/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:591:in `block (2 levels) in <class:Engine>’ remote: /tmp/build_c58e817396acd7fe215a3b1c6bf3b6a5/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:590:in `each’ remote: /tmp/build_c58e817396acd7fe215a3b1c6bf3b6a5/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/engine.rb:590:in `block in <class:Engine>’ remote: /tmp/build_c58e817396acd7fe215a3b1c6bf3b6a5/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `instance_exec’ remote: /tmp/build_c58e817396acd7fe215a3b1c6bf3b6a5/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:30:in `run’ remote: /tmp/build_c58e817396acd7fe215a3b1c6bf3b6a5/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:55:in `block in run_initializers’ remote: /tmp/build_c58e817396acd7fe215a3b1c6bf3b6a5/vendor/bundle/ruby/2.0.0/gems/railties-4.0.1/lib/rails/initializable.rb:44:in […]

How to overwrite local files with a specific Heroku release version?

I made a series of small commits to an Heroku app without realizing something broke. I was able to rollback to previous versions and found the last working version. I’m not sure what the proper git wordage is here (I guess either clone or pull). To clarify I want to replace all of my local […]

git push heroku master – Fetching repository, done. Everything up-to-date

Note: I am using iOS Mavericks. I have been using RailsApp Project Tutorials. It says that everything is working ok: MacBook-Air:XXX zachmachuca$ git push heroku master Fetching repository, done. Everything up-to-date But when I enter $ heroku open the page shows me: The page you were looking for doesn’t exist. You may have mistyped the […]

Git Baby is a git and github fan, let's start git clone.