Sha256: c42f429c60d8625a1fe177f2feed2b310ac3998a8050624f2b78f80dc8269b44

Contents?: true

Size: 353 Bytes

Versions: 7

Compression:

Stored size: 353 Bytes

Contents

#!/bin/bash

name=$1

prod_path="/var/www/rails_apps/prod/"
dev_path="/var/www/rails_apps/dev/"
path="$dev_path$name"
if [ -z $name ] ; then
 echo "usage: $0 appname"
 exit 1;
fi

rm -rf $prod_path$name
rm -rf $dev_path$name


rm -f /etc/apache2/sites-enabled/prod.$name.conf
rm -f /etc/apache2/sites-enabled/dev.$name.conf

sudo service apache2 reload

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
citrin-0.1.7 commands/remove_railsapp
citrin-0.1.6 commands/remove_railsapp
citrin-0.1.5 commands/remove_railsapp
citrin-0.1.4 commands/remove_railsapp
citrin-0.1.3 commands/remove_railsapp
citrin-0.1.2 commands/remove_railsapp
citrin-0.1.1 commands/remove_railsapp