Skip to content

Commit

Permalink
remove hab-bpm use from rails app
Browse files Browse the repository at this point in the history
Signed-off-by: jtimberman <[email protected]>

Pull request: #770
Approved by: reset
  • Loading branch information
jtimberman authored and thesentinels committed Jun 12, 2016
1 parent 8b161b1 commit d6280ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plans/ruby-rails-sample/hooks/init
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ echo "Linking database.yml"
ln -sf {{pkg.svc_config_path}}/database.yml ${RAILS_SAMPLE_DATA}/dist/config/database.yml

export GEM_HOME="${RAILS_SAMPLE_DATA}/dist/vendor/bundle/ruby/2.3.0"
export GEM_PATH="$(hab-bpm pkgpath core/ruby)/lib/ruby/gems/2.3.0:$(hab-bpm pkgpath core/bundler):$GEM_HOME"
export LD_LIBRARY_PATH="$(hab-bpm pkgpath core/gcc-libs)/lib"
export GEM_PATH="$(hab pkg path core/ruby)/lib/ruby/gems/2.3.0:$(hab pkg path core/bundler):$GEM_HOME"
export LD_LIBRARY_PATH="$(hab pkg path core/gcc-libs)/lib"
export PATH="$PATH:${RAILS_SAMPLE_DATA}/dist/bin"
export RAILS_ENV="production"

Expand Down
4 changes: 2 additions & 2 deletions plans/ruby-rails-sample/hooks/run
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh
export RAILS_SAMPLE_DATA="{{pkg.svc_data_path}}"
export GEM_HOME="${RAILS_SAMPLE_DATA}/dist/vendor/bundle/ruby/2.3.0"
export GEM_PATH="$(hab-bpm pkgpath core/ruby)/lib/ruby/gems/2.3.0:$(hab-bpm pkgpath core/bundler):$GEM_HOME"
export LD_LIBRARY_PATH="$(hab-bpm pkgpath core/gcc-libs)/lib"
export GEM_PATH="$(hab pkg path core/ruby)/lib/ruby/gems/2.3.0:$(hab pkg path core/bundler):$GEM_HOME"
export LD_LIBRARY_PATH="$(hab pkg path core/gcc-libs)/lib"
export PATH="$PATH:${RAILS_SAMPLE_DATA}/dist/bin"
export RAILS_ENV="production"

Expand Down

0 comments on commit d6280ae

Please sign in to comment.