Skip to content

Commit

Permalink
adding local path to bundle config
Browse files Browse the repository at this point in the history
Signed-off-by: RoyShravani <shravani.roy@progress.com>
  • Loading branch information
RoyShravani committed Jan 10, 2025
1 parent c919ae5 commit 90cf8dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
5 changes: 2 additions & 3 deletions components/automate-cs-ocid/habitat/hooks/run
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,8 @@ cp "{{pkg.svc_config_path}}/tasks/oauth_application.rake" $(hab pkg path "chef/o
cd {{pkgPathFor "chef/oc_id"}}/oc_id

# Suspecting that the bundle path is not getting set correctly due to which .bundle is getting created in the root directory
# Set the BUNDLE_APP_CONFIG environment variable to a ocid directory
# export BUNDLE_APP_CONFIG="{{pkgPathFor "chef/oc_id"}}/oc_id/.bundle"
bundle config path "vendor/bundle"
# Suspecting that the bundle path is not getting set correctly due to which .bundle is getting created in the root directory
bundle config set --local path "vendor/bundle"

export RAILS_ENV="{{cfg.rails_env}}"
export RACK_ENV="{{cfg.rack_env}}"
Expand Down
8 changes: 0 additions & 8 deletions components/automate-cs-ocid/habitat/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,3 @@ do_build() {
do_install() {
return 0
}

do_end() {
if [ -d "/root/.bundle" ]; then
# Remove the .bundle directory
rm -rf /root/.bundle
echo ".bundle directory in /root has been removed."
fi
}

0 comments on commit 90cf8dc

Please sign in to comment.