Skip to content

Commit cef8a1a

Browse files
author
stack
committed
Need to create database for script to work.
1 parent b57e2f8 commit cef8a1a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
docker run --rm --name magento2 -i -t -p 80:80 --link mysql:mysql -e MYSQL_USER=root -e MYSQL_PASSWORD=admin -e PUBLIC_HOST=coreos-1-5920.lvs01.dev.ebayc3.com docker-magento2-demo-apache $*
1+
docker run --rm --name magento2 -i -t -p 80:80 --link mysql:mysql -e MYSQL_USER=root -e MYSQL_PASSWORD=admin -e PUBLIC_HOST=akent1-8619.lvs01.dev.ebayc3.com docker-magento2-demo-apache $*

scripts/runserver

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ until mysql $MYSQLAUTH -e ""; do
1212
sleep 1
1313
done
1414

15+
mysql $MYSQLAUTH -e "CREATE DATABASE IF NOT EXISTS magento2"
16+
1517
# Create the Magento local.xml file
1618
if [ ! -f /var/www/magento2/htdocs/app/etc/local.xml ]; then
1719
(

0 commit comments

Comments
 (0)