Moved cloud66 config out of .cloud66 into config/cloud/cloud66 it is way too prominent as the first folder in github

Amended documentation to point to it from the install guide in the alternative section
Removed callout from the ubuntu guide, as it is unrelated
This commit is contained in:
Sam Saffron
2013-10-15 22:31:57 +11:00
parent e2ae3f0b45
commit 20039860eb
16 changed files with 2 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
#!/bin/bash
FILE=/tmp/curl_done
if [ -f $FILE ]
then
echo "File $FILE exists..."
else
curl localhost
curl localhost
curl localhost
curl localhost
curl localhost
touch /tmp/curl_done
fi

View File

@@ -0,0 +1,11 @@
#!/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

View File

@@ -0,0 +1,2 @@
#!/bin/bash
source /var/.cloud66_env

View File

@@ -0,0 +1,10 @@
#!/bin/bash
FILE=/tmp/import_dev_done
if [ -f $FILE ]
then
echo "File $FILE exists..."
else
psql $POSTGRESQL_DATABASE < /tmp/images/development-image.sql
touch /tmp/import_dev_done
fi

View File

@@ -0,0 +1,10 @@
#!/bin/bash
FILE=/tmp/import_prod_done
if [ -f $FILE ]
then
echo "File $FILE exists..."
else
psql $POSTGRESQL_DATABASE < /tmp/images/production-image.sql
touch /tmp/import_prod_done
fi

View File

@@ -0,0 +1,10 @@
#!/bin/bash
FILE=/tmp/kill_db_done
if [ -f $FILE ]
then
echo "File $FILE exists..."
else
ps xa | grep postgres: | grep $POSTGRESQL_DATABASE | grep -v grep | awk '{print $1}' | sudo xargs kill
touch /tmp/kill_db_done
fi

View File

@@ -0,0 +1,11 @@
#!/bin/bash
FILE=/tmp/migrate_done
if [ -f $FILE ]
then
echo "File $FILE exists..."
else
cd $RAILS_STACK_PATH
bundle exec rake db:migrate db:seed_fu
touch /tmp/migrate_done
fi

View File

@@ -0,0 +1,2 @@
#!/bin/bash
sudo chmod 0644 -R /var/.cloud66_env