Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Owain Jones
gliders-webserver
Commits
ed28f0a3
Commit
ed28f0a3
authored
9 years ago
by
Alvaro Lorenzo
Browse files
Options
Download
Email Patches
Plain Diff
New interactive dialogs added to ease the process
parent
2c5e504f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
deploy.sh
deploy.sh
+13
-7
No files found.
deploy.sh
View file @
ed28f0a3
...
...
@@ -10,6 +10,11 @@
# dockservers from scripts etc.
ssh-keygen
echo
"Please copy the public key on your gitlab account with the name gliders"
cat
/home/gliders/.ssh/id_rsa.pub
echo
"Plese press return when you are done"
read
# Install Composer
mkdir
-p
/home/gliders/bin
curl
-sS
https://getcomposer.org/installer | php
--
--install-dir
=
bin
...
...
@@ -33,14 +38,15 @@ git clone git@gitlab.noc.soton.ac.uk:owanes/gliders-website.git
cd
gliders-tools
python setup.py
install
echo
"please enter your mysql root user password when prompted (three times)"
mysql
-u
root
-p
< new_schema.sql
echo
"CREATE USER 'gliders'@'%' IDENTIFIED BY 'gliders9876';"
| mysql
-u
root
-p
echo
"GRANT ALL ON gliders.* TO 'gliders'@'%';"
| mysql
-u
root
-p
echo
"please enter your mysql root user password"
read
-s
pass
mysql
-u
root
-p
$pass
< new_schema.sql
echo
"CREATE USER 'gliders'@'%' IDENTIFIED BY '"
$pass
"' ;"
| mysql
-u
root
-p
$pass
echo
"GRANT ALL ON gliders.* TO 'gliders'@'%';"
| mysql
-u
root
-p
$pass
cd
bin
./
migrate_data.sh
sh
migrate_data.sh
# Deploy the website
cd
/home/gliders/code/gliders-website
./
bin/deploy.sh /var/gliders/www_dev dev
./
bin/deploy.sh /var/gliders/www prod
sh
bin/deploy.sh /var/gliders/www_dev dev
sh
bin/deploy.sh /var/gliders/www prod
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment