Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #23

Merged
merged 4 commits into from
Jul 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ if [ ! -d /data/tmp ]; then
fi

# clear any stale httpd.pid files
rm -f /var/run/httpd/httpd.pid
FILE=/var/run/httpd/httpd.pid
if [ -f "$FILE" ]; then
echo "$FILE exists"
rm -f $FILE
fi
# clear out other stale processes
rm -rf /run/httpd/*

if [ ! -d /data/pathdb/mysql ]; then
rm -rf /data/pathdb/quip
Expand All @@ -15,7 +21,7 @@ if [ ! -d /data/pathdb/mysql ]; then
/usr/bin/mysqld_safe --datadir='/data/pathdb/mysql' &
sleep 10
mysql -u root -e "create database QuIP"
cd /data/pathdb/quip
cd /data/pathdb/quip/web
/data/pathdb/quip/vendor/bin/drush -y si standard --db-url=mysql://root:@localhost/QuIP
/data/pathdb/quip/vendor/bin/drush -y upwd admin bluecheese2018
/data/pathdb/quip/vendor/bin/drush -y pm:enable rest serialization
Expand All @@ -37,6 +43,7 @@ if [ ! -d /data/pathdb/mysql ]; then
sleep 1
wget --spider --quiet http://localhost
done
/data/pathdb/quip/vendor/bin/drush -y cache-rebuild

# create REST API System User
/data/pathdb/quip/vendor/bin/drush user:create --password bluecheese2018 archon
Expand Down