Sha256: 34aa643ecd9a089147cb659930dd0977128f0de8efc76c412efafbd4201960f0

Contents?: true

Size: 1.23 KB

Versions: 30

Compression:

Stored size: 1.23 KB

Contents

#!/bin/bash
#
# Use this script to setup upstart, monit and any server related service

# Point upstart scripts
rm -f /etc/init/<%= app_name %>*
ln -s /apps/<%= app_name %>/current/scripts/<%= environment %>/upstart/app.conf /etc/init/<%= app_name %>.conf
ln -s /apps/<%= app_name %>/current/scripts/<%= environment %>/upstart/app-web.conf /etc/init/<%= app_name %>-web.conf
ln -s /apps/<%= app_name %>/current/scripts/<%= environment %>/upstart/app-web-server.conf /etc/init/<%= app_name %>-web-server.conf
ln -s /apps/<%= app_name %>/current/scripts/<%= environment %>/upstart/app-web-hotrestart.conf /etc/init/<%= app_name %>-web-hotrestart.conf

# Reload upstart
initctl reload-configuration

# Point monit scripts
rm -f /etc/monit/conf.d/<%= app_name %>*
ln -s /apps/<%= app_name %>/current/scripts/<%= environment %>/monit/app-server.conf /etc/monit/conf.d/<%= app_name %>-server.conf

# Reload monit
service monit reload

# Nginx
rm -f /etc/nginx/sites-available/<%= app_name %>
rm -f /etc/nginx/sites-enabled/<%= app_name %>
ln -s /apps/<%= app_name %>/current/scripts/<%= environment %>/nginx/app /etc/nginx/sites-available/<%= app_name %>
ln -s /etc/nginx/sites-available/<%= app_name %> /etc/nginx/sites-enabled/<%= app_name %>
service nginx reload

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mno-enterprise-core-3.4.0 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.3.3 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.3.2 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.2.1 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.3.1 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.3.0 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.2.0 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.1.4 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.0.7 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-2.0.9 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.1.3 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.0.6 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-2.0.8 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.1.2 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.0.5 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-2.0.7 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-2.0.6 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-2.0.5 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.1.1 lib/generators/mno_enterprise/templates/scripts/setup.sh
mno-enterprise-core-3.0.4 lib/generators/mno_enterprise/templates/scripts/setup.sh