vendredi 12 mai 2017

Rails engine latest commit not reflecting in host application

I have an application which is using rails engine.

route file of host application named as crowd

Rails.application.routes.draw do
    mount Crowd::Engine => "/"
end

Gemfile

gem 'crowd',  git: 'git@bitbucket.org:arvind/crowd.git',  ref: '56d948518f11cab64a4d6213fb098288175a4665'   #this is the latest commit

I am able to access the code from rails engine, but the problem is whatever new code I am commiting in rails engine is not reflecting in my production instance. Although I am able to access the latest code commit on localhost but not on production after deployment.

The funny thing the latest code of engine is accessible from rails console in production. But it doesnt reflect when accessed from IP of that server.

The app consists:

 1. Memcached server
 2. Elasticsearch server
 3. sidekiq server
 4. Mysql server

I am deploying application using capistrano. I have observed that at one point bundling of honeybadger fails down at time of deployment, but in the end it gets completed successfully can it be related?

cap logs:

DEBUG[75f8aa4f] Finished in 0.636 seconds with exit status 0 (successful).
INFO[98954a51] Running RAILS_ENV=dev bundle exec honeybadger deploy --environment dev --revision e679be0 --repository git@bitbucket.org:prem/boold-ruby.git --user prem on 66.228.62.229
DEBUG[98954a51] Command: cd /home/deploy/boold/releases/20170512042820 && RAILS_ENV=dev bundle exec honeybadger deploy --environment dev --revision e679be0 --repository git@bitbucket.org:prem/boold-ruby.git --user prem
DEBUG[98954a51]     bash: bundle: command not found
INFO[98954a51] Finished in 0.556 seconds with exit status 127 (failed).
INFOHoneybadger notification complete.
DEBUG[a97f49cf] Running /usr/bin/env if test ! -d /home/deploy/boold/releases; then echo "Directory does not exist '/home/deploy/boold/releases'" 1>&2; false; fi on 66.228.62.229
DEBUG[a97f49cf] Command: if test ! -d /home/deploy/boold/releases; then echo "Directory does not exist '/home/deploy/boold/releases'" 1>&2; false; fi
DEBUG[a97f49cf] Finished in 0.760 seconds with exit status 0 (successful).
INFO[588e79b7] Running /usr/bin/env echo "Branch dev (at e679be0) deployed as release 20170512042820 by prem" >> /home/deploy/boold/revisions.log on 66.228.62.229
DEBUG[588e79b7] Command: echo "Branch dev (at e679be0) deployed as release 20170512042820 by prem" >> /home/deploy/boold/revisions.log
INFO[588e79b7] Finished in 0.555 seconds with exit status 0 (successful).

Aucun commentaire:

Enregistrer un commentaire