小编pud*_*ing的帖子

git post-receive hook没有运行bundle install

我无法运行post-receive hook,如下所示:

#!/bin/sh
unset $(git rev-parse --local-env-vars)
cd ~/commodity
git pull origin master
bundle install
bundle exec rake assets:precompile
thin restart
Run Code Online (Sandbox Code Playgroud)

我正在从本地推送到远程,我收到此错误:

Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 319 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: From /var/www/html/test
remote:  * branch            master     -> FETCH_HEAD
remote: Updating a06129c..c3c3da3
remote: hooks/post-receive: line 19: bundle: command not found
remote: hooks/post-receive: line 20: bundle: command not …
Run Code Online (Sandbox Code Playgroud)

ruby linux git bundle ruby-on-rails

6
推荐指数
1
解决办法
1334
查看次数

标签 统计

bundle ×1

git ×1

linux ×1

ruby ×1

ruby-on-rails ×1