Sha256: 4890f0ea636eff3587dcb9a0801793cb683b8d4a3477d0b594879c45c0815a2a

Contents?: true

Size: 540 Bytes

Versions: 5

Compression:

Stored size: 540 Bytes

Contents

#!/usr/bin/env bash
# Экспорт Procfile
cd /home/rails/cap_application/current
foreman export systemd /etc/systemd/system --user=root --app=cap_application
# Замена пути
files=(/etc/systemd/system/cap_application-web@.service /etc/systemd/system/cap_application-worker@.service /etc/systemd/system/cap_application-redis@.service)

for file in ${files[@]}
do
    if [ -e ${file} ]
    then
        sed -i "s/releases.*$/current/g" ${file}
        echo ${file}
    fi
done

unset files

systemctl enable cap_application.target

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
digital_heroes_startkit-0.1.1.4 lib/generators/project/config/deploy/virgin_sh/foreman.sh
digital_heroes_startkit-0.1.1.3 lib/generators/project/config/deploy/virgin_sh/foreman.sh
digital_heroes_startkit-0.1.1.2 lib/generators/project/config/deploy/virgin_sh/foreman.sh
digital_heroes_startkit-0.1.1.1 lib/generators/project/config/deploy/virgin_sh/foreman.sh
digital_heroes_startkit-0.1.1 lib/generators/project/config/deploy/virgin_sh/foreman.sh