Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Deploy Preinstall

ZeroC0D3 Team edited this page Jan 19, 2018 · 2 revisions

Deploy-Preinstall

Preinstall script will be running before Web Server service running

Development / Staging

#!/usr/bin/env sh

# ========== PREINSTALLATION SCRIPTS ========== # 
#  Do Not Remove This File !                    #
#  This is customize script before server up    # 
# ============================================= #

ENV='staging'
BUNDLE=`which bundle`

if [ "$ENV" = "production" ]
then
  PWD='/home/deploy/zeroc0d3lab/current'
else
  PWD='/home/deploy/zeroc0d3lab.dev/current'
fi

cd $PWD
$BUNDLE install --binstubs

Production

#!/usr/bin/env sh

# ========== PREINSTALLATION SCRIPTS ========== # 
#  Do Not Remove This File !                    #
#  This is customize script before server up    # 
# ============================================= #

ENV='production'
BUNDLE=`which bundle`

if [ "$ENV" = "production" ]
then
  PWD='/home/deploy/zeroc0d3lab/current'
else
  PWD='/home/deploy/zeroc0d3lab.dev/current'
fi

cd $PWD
$BUNDLE install --binstubs
Clone this wiki locally