Tag: ruby on rails

Pushing to heroku failing

I am a collaborator on a Heroku app programmed in Rails I am getting this error when trying to push to the staging environment. I am only a collaborator on the staging environment of the application and not the production repo. When I try git push heroku master I get the following error: Hugos-MacBook-Air:app_name hugo$ […]

Git is not ignoring tmp files

I’m having this annoying issue in a Ruby On Rails application where git keeps committing these tmp/ files. In my .gitignore file, I have tmp/ so I don’t understand why they keep showing up…here is my .gitignore file for reference: # Ignore bundler config. /.bundle # Ignore the default SQLite database. /db/*.sqlite3 /db/*.sqlite3-journal # Ignore […]

Heroku app has differences to local repository

My app looks really nice on my computer. I add it to a repo git add ., git commit -m ‘create app’ and push this repo up to heroku with git push heroku master. It looks identical to my local repository, and I expect nothing less. But I’ve pushed my code again, and now there’s […]

Heroku push to production

I set up my staging and production environments on heroku, and pushed to both and it worked fine. I came back a day later and was able to push to staging but got the following message about git push production master: fatal: ‘production’ does not appear to be a git repository fatal: Could not read […]

Can I Deploy With Capistrano Without SCM?

Capistrano configfile has the config set :scm,:git and the :repo_url and :branch Can I deploy with capistrano without scm? set :scm, :none set :repository, “.” What is the benefit of scm config in the Capistrano deploy?

What is the best workflow for updating / deploying a Rails app through Git?

I just deployed my first Ruby on Rails app on a VPS at Digital Ocean. To get started quickly, I did this by simply dragging my Rails directory tree (and its containing files) onto the server via (S)FTP. I know this isn’t the best solution in the long run. So how can I link my […]

Git ingoring vendor folder

I have added vendor folder to my .gitignore file, but still whenever I do git status it shows me that vendor folder is modified. Below are my steps that I followed in order to push my code to my repository:- step 1)Created .gitignore file with following content. .idea/* log/* tmp/* step 2)Pushed gitignore file to […]

Ruby gem error while trying to login to openshift via terminal

I tried installing ruby and rails which did work. But now that I am trying to get openshift to work. In openshift, I have created the application and Now I just want to transfer all the files the git hub. So according to my understanding, I have to login into openshift then I can use […]

Git More than one value for the key user.name/email

Problem 1. when I run the command $ git config –global user.name # or $ git config –global user.email I get the following error message: error: More than one value for the key user.name/email So it seems like I have multiple values stored against both my user name and email. I want to have one […]

Heroku Ruby on Rails upgrade crash

I am updating my website hosted on Heroku from Ruby 1.9.3 > 2.1.0 and Rails 3.2.13 > 4.0.3. Based on the deployment command “git push heroku master” Everything was updated successfully, see below Fetching repository, done. Counting objects: 7, done. Delta compression using up to 4 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% […]

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