@@ -12,31 +12,30 @@ until mysql $MYSQLAUTH -e ""; do
12
12
sleep 1
13
13
done
14
14
15
- mysql $MYSQLAUTH -e " CREATE DATABASE IF NOT EXISTS magento2 "
15
+ mysql $MYSQLAUTH -e " CREATE DATABASE IF NOT EXISTS magento "
16
16
17
- # Create the Magento local.xml file
18
- if [ ! -f /var/www/magento2/htdocs/app/etc/local.xml ]; then
19
- (
20
- cd /var/www/magento2/htdocs/setup
21
- php -f index.php install \
22
- --cleanup_database \
23
- --db_host=mysql \
24
- --db_name=magento2 \
25
- --db_user=" $MYSQL_USER " \
26
- --db_pass=" $MYSQL_PASSWORD " \
27
- --backend_frontname=admin \
28
- --base_url=http://$PUBLIC_HOST / \
29
- --language=en_US \
30
- --timezone=America/Los_Angeles \
31
- --currency=USD \
32
- --admin_lastname=Smith \
33
- --admin_firstname=John \
34
-
35
- --admin_username=admin \
36
- --admin_password=admin123 \
37
- --use_secure=0
38
- )
39
- fi
17
+ cd /var/www/magento2/htdocs
18
+ php -f setup/index.php install \
19
+ --cleanup_database \
20
+ --db_host=mysql \
21
+ --db_name=magento \
22
+ --db_user=" $MYSQL_USER " \
23
+ --db_pass=" $MYSQL_PASSWORD " \
24
+ --backend_frontname=admin \
25
+ --base_url=http://$PUBLIC_HOST / \
26
+ --language=en_US \
27
+ --timezone=America/Los_Angeles \
28
+ --currency=USD \
29
+ --admin_lastname=Smith \
30
+ --admin_firstname=John \
31
+
32
+ --admin_username=admin \
33
+ --admin_password=admin123 \
34
+ --use_secure=0
35
+
36
+ # In production mode we pre-compute various files
37
+ php -f dev/tools/Magento/Tools/View/deploy.php
38
+ php -f dev/tools/Magento/Tools/Di/compiler.php
40
39
41
40
# Run the web server
42
41
exec /usr/sbin/apache2 -D FOREGROUND
0 commit comments