mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
14
config/cloud/cloud66/scripts/curl.sh
Normal file
14
config/cloud/cloud66/scripts/curl.sh
Normal 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
|
||||
11
config/cloud/cloud66/scripts/drop_create.sh
Normal file
11
config/cloud/cloud66/scripts/drop_create.sh
Normal 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
|
||||
2
config/cloud/cloud66/scripts/env_vars.sh
Normal file
2
config/cloud/cloud66/scripts/env_vars.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
source /var/.cloud66_env
|
||||
10
config/cloud/cloud66/scripts/import_dev.sh
Normal file
10
config/cloud/cloud66/scripts/import_dev.sh
Normal 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
|
||||
10
config/cloud/cloud66/scripts/import_prod.sh
Normal file
10
config/cloud/cloud66/scripts/import_prod.sh
Normal 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
|
||||
10
config/cloud/cloud66/scripts/kill_db.sh
Normal file
10
config/cloud/cloud66/scripts/kill_db.sh
Normal 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
|
||||
11
config/cloud/cloud66/scripts/migrate.sh
Normal file
11
config/cloud/cloud66/scripts/migrate.sh
Normal 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
|
||||
2
config/cloud/cloud66/scripts/permissions.sh
Normal file
2
config/cloud/cloud66/scripts/permissions.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
sudo chmod 0644 -R /var/.cloud66_env
|
||||
Reference in New Issue
Block a user