Tag: ruby on rails

Deploy from Git using Capistrano without a hard reset?

I’ve an issue at the moment where we are running a CMS within a site (browsercms) that lets the user upload files. However, every time I do a deploy Capistrano runs a hard reset thus nuking any uploaded files. Does anyone have any suggestions as to how to prevent the hard reset, and just do […]

How to handle Gemfile.lock with local gem repositories?

Introduction We have a Rails5 application, which is splittend in about 10+ engines and a core application, which mounts these engines. A engine in our case is a plain old rails engine defined as a gem and located in a dedicated git repository. The Gemfile in the core application refers all engines (see below). Required […]

Git workflow on Heroku

I am a “GIT newbie” as of starting with Heroku, and I’m interested in knowing what would be best practice in how to work with it. As of now my site has one production environment and one staging environment. However I’m only using the most basic GIT commands, i e: git add . git commit […]

heroku deployment testing

I have an app I’ve been upgrading to Rails 3, I’ve been hosting it on heroku for the past 6 months (rails 2.3.8 currently) but am unclear how to test my Rails 3 branch before I proceed. The most i could find about the subject in their docs was that I could do something like […]

GitHub Deploy via Capistrano. Public Repo and SSH works, but Private doesn't

i really need your help. I have a Ruby on Rails Application on my local machine, a Repository at GitHub and an Ubuntu Server, which hosts the application with Nginx. I had my repo for a lot of time public and the deployment via capistrano worked just fine. Now I converted my repo to a […]

Adding Folder/Subfolders/files in Git

How can I add a folder recursively, with its subfolders and its files? When I use git add folder_name, only that folder is getting added. git status now shows the files under the subfolders are shown as new files and untracked. For example, in Rails application, inside the Rails project folder, there are many folders: […]

Starting over with Git

I decided to learn how to use Version Control over Christmas break, so I downloaded Git, opened a GitHub account and started reading the online tutorial linked to from the GitHub website. When I got to this part http://progit.org/book/ch2-2.html I got stuck because I wasn’t sure how to add files. For instance, I tried git […]

Using Bundler with Git, is https:// or git:// better?

Using bundler to install a gem from github, there are two obvious choices; https:// or git://. From the default rails template; gem “rails”, :git => “git://github.com/rails/rails” But, when viewing the rails repo on github, the default clone url is the https:// url. Copying and pasting straight from github, I’d end up with; gem “rails”, :git […]

Error while deploying to heroku: rake assets:precompile PG::ConnectionBad: could not connect to server: Connection refused

While trying to git push the application to heroku, i get this specific error: remote: Running: rake assets:precompile remote: PG::ConnectionBad: could not connect to server: Connection refused remote: Is the server running on host “” and accepting remote: TCP/IP connections on port 5432? I tried to follow the steps of the article : https://devcenter.heroku.com/articles/rails-asset-pipeline#troubleshooting And […]

heroku git repo change

Muhammed-Bhikhas-MacBook-Pro:mashs_wing_ranch BH1KH4$ git remote -v heroku git@heroku.com:sleepy-cliffs-9120.git (fetch) heroku git@heroku.com:sleepy-cliffs-9120.git (push) origin git@heroku.com:gentle-bastion-5131.git (fetch) origin git@heroku.com:gentle-bastion-5131.git (push) When I run git remote -v, I get the wrong app for heroku. That is an app I had previously, how do I get the sleepy-cliffs-9120.git to change to my new app gentle-bastion-5131 ?

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