Sha256: de54f392a5af4bd93c3d942e346c118dda4752c4c829dc72c63788e0d983bf8e
Contents?: true
Size: 676 Bytes
Versions: 1
Compression:
Stored size: 676 Bytes
Contents
#!/bin/bash USAGE="Uso: app_deploy.sh <RAILS_ENV>" SCRIPT_DIR=$(dirname "$0") cd $SCRIPT_DIR RAILS_ENV=$1 if [ -z $RAILS_ENV ]; then echo "Argumento RAILS_ENV é obrigatório." echo $USAGE exit fi if [ $RAILS_ENV != 'staging' ] && [ $RAILS_ENV != 'production' ]; then echo "Valores permitidos para o argumento RAILS_ENV são: staging, production." echo $USAGE exit fi echo "Preparing application for deployment..." app_pack.sh $RAILS_ENV echo "Done." echo "Rebooting AWS instances to deploy new version." app_stop_instances_by_role.sh $RAILS_ENV web <%- @roles.each do |role| %> app_stop_instances_by_role.sh $RAILS_ENV <%= role %> <% end %> echo "Done."
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aws_stack_builder-0.1.0 | lib/generators/aws_stack_builder/templates/aws/scripts/app_deploy.sh.template |