Tag: ruby on rails

Rails 5 – pushing to GitHub

I was pushing normally to my repository, but I had to delete that one due to mistakes I made. Afterwards, I made a new repository and connected it, but when I try to push my whole code to that repository, it does not get pushed since I have no changes. On branch final-branch nothing to […]

How to push local postgresql database built on rails to heroku?

I have some data in my postgresql database that I entered using a very simple rails app. I deployed it to heroku and now am trying to send my local database to heroku because its very empty right now. At first I thought doing heroku run rake db:migrate would actually do this but turns out […]

Github pulling does not work in – Rails 5

I’m trying to pull last commit that I made on github, and though I get no errors, I see no changes in the code. I messed up my schema file, but after I pull the code it does not change at all. I searched here on stack and the solution that worked for others didn’t […]

newbie capistrano rails deployment problem (can't find git in the path)

I’m using: Rails 3, ruby 1.9.2 and trying to deploy using capistrano. When I run cap deploy:check, capistrano tells me that it can’t find git on my deployment server (see below). Any thoughts on what I’m doing wrong?? Here’s my setup. I have a git repo @ github I have a laptop with an updated […]

How can I print my git tags in Capistrano as part of my deploy task?

I’ve set up Capistrano to ask me which git tag I want to deploy: # deploy.rb set(:branch) { Capistrano::CLI.ui.ask(‘Tag to deploy:’) } This works as expected – if I specify v0.75 it will deploy that tag. However, I’d love it if I could print out the list of my tags before I get asked which […]

How to manage differences using same code base for multiple Rails 2.3 websites

We have a website using Rails 2.3.x, bundler, nginx, passenger and git, and would now like to use the same code to deploy a very similar site. Differences between the two will include: Locale Databases Validations in some cases Views in some cases What is the best way to manage these differences while using the […]

git – update to new branch of rails

I currently have a rails project running of a git tag v2.1.2, to get here id did git checkout v2.1.2 However there are now new fix’s that have been applied to the 2.1 branch, how do I move to this branch rather than the tag?

How to work with different versions of rails project at once?

With git is possible to jump back to early versions of a project. Now, to work with these early versions, they depend often on old versions of libraries. Is it possible to circumvent problems like these: /opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/rails/gem_dependency.rb:220:in `specification’: can’t activate haml (= 2.1.0, runtime), already activated haml-3.0.18 (Gem::Exception)

Grit commit seems to be overriding last commit in Git repo?

I’m using Grit to create a repo and committing as few times. Every time I commit, my commit is saved, but the old one disappears. Anyone have any clue what I’m doing wrong? First I create a repo and make a commit. If I log the commit, I get the commit ID, and everything works […]

git-commit-notifier with gmail

First of all you have to know I’m total Ruby noob 🙂 I installed git-commit-notifier (http://github.com/ilozka/git-commit-notifier) on my system (Ubuntu 10.04) and followed all the installation instructions but every time I push to my git repository I get this error message: remote: Sending mail… remote: /usr/lib/ruby/1.8/net/smtp.rb:944:in `check_auth_response’: 530 5.7.0 Must issue a STARTTLS command first. […]

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