Tag: ruby on rails

Create a new repo and push all the code to created repo using octokit.rb – Rails

Octokit.rb is a Ruby toolkit for the GitHub API. I want to use it to create a new repo and then push my code to that repo. I am able to authenticate user but not able to create a repo. Can someone point me to the right direction, or if anyone knows any better Github […]

Issue with heroku

I have gone through the proper protocol with Heroku, installed the gem puma, created a Procfile, and have successfully implemented the git push heroku master command. But when I opt to initiate Heroku open, the website will not display my app. I ran Heroku logs –tail, and the error comes up that the app crashed. […]

Openshift git push fails without or with jenkins

I: -do some random changes –git add them, commit and push Then, the push goes somewhere like this Counting objects: 13, done. Delta compression using up to 8 threads. Compressing objects: 100% (8/8), done. Writing objects: 100% (8/8), 825 bytes | 0 bytes/s, done. Total 8 (delta 6), reused 0 (delta 0) remote: : command […]

git push heroku master rails error

I’m trying to push my new rails app to Heroku, but it doesn’t work. I tried many things, such as: Delete the Gemfile.lock and create another one Run bundle install and bundle install –without production Reinstall the gems ‘pg’ and ‘rails_12factor’ That’s what appears in the command line when I type git push heroku master: […]

Automatic version in DATETIME format on every “git push” on Heroku or elsewhere

Every time I change my project (whether in PHP, Ruby, Erlang, Javascript) I need that before executing commands routine: git add. git commit -am “blablabla” and git push heroku master (or another provider instead of Heroku) I automatically add a version of the project based on the date and time in a project file (for […]

How do I manage the database/migration when checking out earlier commits

Scenario description: I have a master and a feature branch for my source control. —- master       \– feature I have a column called useless_column for my User model, which is present in master branch, which i want to drop in feature branch. Now, I drop useless_column using rails migrations in feature branch removing all code […]

Capistrano: How can I leave a git repository on live/deployed

Ok, Using capistrano 3.2 with Rails 4.2. Put simply I want to have each release on the live server to have an intact git repo with it. I know Cap uses git to clone the files but afik it deletes the .git folder by default. I swear I had this working before on earlier versions […]

Adding rails engine outside the app folder and pushing to heroku

I have a rails app called recipe . And I have a rails engine ‘blogo’ with this folder.Both recipe and blogo is in a folder ‘foodsy’. In my gemfile , blogo is loaded with gem ‘blogo’ ,path : ‘../blogo’ But when I push the app to heroku , I get an error saying remote: Running: […]

Rails, Can't deploy app to heroku

I am new to rails, but got an app working great. Now I want to publish it to the web for a test. I am trying heroku, but can’t get it to work. Here is my gemfile: source ‘https://rubygems.org’ # Bundle edge Rails instead: gem ‘rails’, github: ‘rails/rails’ gem ‘rails’, ‘4.2.4’ # Use sqlite3 as […]

Heroku Push- Several solutions failed

Full disclosure- I am a new to coding. Initially when I tried the command $ git push heroku master -I received the following error, “uninitialized constant Devise”. I moved the gem devise(Gemfile) from (group :development, :test do) to (group :production do) to no avail. I even tried it moving outside the previously mentioned groups. This […]

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