discourse/config/cloud/cloud66/scripts/drop_create.sh

11 lines
190 B
Bash
Raw Normal View History

2013-10-15 00:09:29 +08:00
#!/bin/bash
FILE=/tmp/drop_create_done
if [ -f $FILE ]
then
echo "File $FILE exists..."
else
cd $RAILS_STACK_PATH
bundle exec rake db:drop db:create
touch /tmp/drop_create_done
fi