changed git clone command & added rails env to puma and unicorn cmds
This commit is contained in:
parent
dd6cabc08d
commit
b7205461ab
@ -31,10 +31,9 @@ if [ "$1" = 'zammad' ]; then
|
|||||||
else
|
else
|
||||||
echo "installing zammad..."
|
echo "installing zammad..."
|
||||||
cd /tmp
|
cd /tmp
|
||||||
git clone ${GIT_URL}
|
git clone --depth 1 -b ${GIT_BRANCH} ${GIT_URL}
|
||||||
mv -f /tmp/zammad/* ${ZAMMAD_DIR}/
|
mv -f /tmp/zammad/* ${ZAMMAD_DIR}/
|
||||||
cd ${ZAMMAD_DIR}
|
cd ${ZAMMAD_DIR}
|
||||||
git checkout ${GIT_BRANCH}
|
|
||||||
bundle install --without test development
|
bundle install --without test development
|
||||||
sed -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: postgresql\n#g' < config/database.yml.pkgr > config/database.yml
|
sed -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: postgresql\n#g' < config/database.yml.pkgr > config/database.yml
|
||||||
rake db:drop
|
rake db:drop
|
||||||
@ -57,9 +56,9 @@ if [ "$1" = 'zammad' ]; then
|
|||||||
bundle exec script/scheduler.rb start &
|
bundle exec script/scheduler.rb start &
|
||||||
|
|
||||||
if [ "${RAILS_SERVER}" == "puma" ]; then
|
if [ "${RAILS_SERVER}" == "puma" ]; then
|
||||||
bundle exec puma -b tcp://0.0.0.0:3000
|
bundle exec puma -b tcp://0.0.0.0:3000 -e ${RAILS_ENV}
|
||||||
elif [ "${RAILS_SERVER}" == "unicorn" ]; then
|
elif [ "${RAILS_SERVER}" == "unicorn" ]; then
|
||||||
bundle exec unicorn -p 3000 -c config/unicorn.rb
|
bundle exec unicorn -p 3000 -c config/unicorn.rb -E ${RAILS_ENV}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${DEBUG}" == "yes" ]; then
|
if [ "${DEBUG}" == "yes" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user