Tag: ruby on rails

Capistrano Many Private Repo Github

Very strange behavior and i cant understand where problems. I have 2 private repositories on Github and i deploy with Capistrano. First app normal deployed deploy.rb: require “rvm/capistrano” require ‘bundler/capistrano’ set :rvm_ruby_string, “2.1.0” set :assets_role, :app set :normalize_asset_timestamps, false set :application, “awesome_app_one” set :scm, :git set :repository, “git@github.com:myaccount/repo_one.git” set :branch, :master set :deploy_via, :remote_cache set […]

heroku app not being properly updated?

I’m new to the web development scene, so sorry if my lack of knowledge bugs you When i run my local code using rails s and testing on my own server, the front end is not the same as the local one. My first attempt was to initially fix some snippet of code, then use […]

Capistrano Deploy Permission Denied

I`m trying to deploy my app Rails 4 app with Capistrano on Amazon EC2 but I keeping getting Acess Denied (publickey). executing locally: “git ls-remote git@github.com:myuser/myrepo.git HEAD” Permission denied (publickey). fatal: Could not read from remote repository. On the remote server I`m able to git clone my repo. Here : Initialized empty Git repository in […]

Rails / Carrierwave / GIT / nginx / Capistrano – can't create a directory in git releases folder

I’m using carrierwave in a rails app to upload files. It works fine on my development environment, but on my production VM (Ubuntu), I’m getting this error: An Errno::EACCES occurred in users#update: Permission denied – /home/yards/apps/yardsapp/releases/20130616143623/public/uploads/tmp/20130616-1438-14186-3184 /usr/local/lib/ruby/1.9.1/fileutils.rb:244:in `mkdir’ I’m pretty sure I understand what is going on, but I can’t seem to figure out a […]

Rails Migration Order and Git

Since doing migrations with rails + git is type of a pain, a new thorn has sprung.. Before I am doing any harm to my prod DB, would the following situation cause havoc? If so, how would I handle it? I am working a long-term feature in a separate branch (feature/long-term). This feature is an […]

Correct way to use git?

I decided to use GIT when developing a rails application. When i code i started off my initial commit on my master branch which i set as a slate to work off of. Then when i want to add a new feature such as devise i would checkout a new branch called “devise” then start […]

How to separate backbone.js APP and rails APP

I need to separate my Frontend and Backend into two different repos. Because one developer can’t install rails and doesn’t need it (we can make stub for API). How can I do it in case of deployment? Do I need git submodule? How to use it (with GitHub and Ninefold)? I found information about how […]

Heroku – Precompiling assets failed. Push rejected, failed to compile Ruby app

I’m a bit too new at RoR to spot where the error is. Been following railstutorial.org and I get this on my push to heroku. Is it aborting because of this –> NoMethodError: undefined method `link_to’ for . ?? That’s the only thing that I was able to spot for myself. warning: push.default is unset; […]

Pushing Rails App to Heroku – “fatal: Could not parse object”

I am a Noob trying to push my first app from onemonthrails.com up to heroku. I have been trying to solve this issue on stackoverflow and other sites. I cannot seem to come up with an answer. I tried deleting the gem-file then recreating before I pushed it up, diddn’t work. Also, I started with […]

twitter bootstrap rails CSS not loading after cloning project on new machine

I have two machines, Machine1 works just fine. Machine2 is a new machine that I’m setting up. Machine1 is running OSX 10.6 Snow Leopard and Machine2 is running OSX 10.8 Mountain Lion. I’ve uploaded my project to Github, so I should be able to (on Machine2) install Xcode, homebrew, git, rvm, ruby, rails. Then, clone […]

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