File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,8 @@ mkdir -p htdocs
10
10
curl -sS https://getcomposer.org/installer | php
11
11
php composer.phar install
12
12
13
- cd htdocs
14
- php -f dev/tools/Magento/Tools/View/deploy.php
15
- php -f dev/tools/Magento/Tools/Di/compiler.php
16
-
17
- # Use developer mode to get more detailed error diagnostics, at least for now.
18
- echo " SetEnv MAGE_MODE developer" >> .htaccess
19
- # echo "SetEnv MAGE_MODE production" >> .htaccess
13
+ # Swap to developer mode for better error diagnostics
14
+ echo " SetEnv MAGE_MODE production" >> .htaccess
15
+ # echo "SetEnv MAGE_MODE developer" >> .htaccess
20
16
21
17
chown www-data:www-data -R /var/www/magento2
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ 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
- cd /var/www/magento2/htdocs/setup
17
+ cd /var/www/magento2/htdocs
18
18
php -f setup/index.php install \
19
19
--cleanup_database \
20
20
--db_host=mysql \
21
- --db_name=magento2 \
21
+ --db_name=magento \
22
22
--db_user=" $MYSQL_USER " \
23
23
--db_pass=" $MYSQL_PASSWORD " \
24
24
--backend_frontname=admin \
@@ -33,5 +33,9 @@ php -f setup/index.php install \
33
33
--admin_password=admin123 \
34
34
--use_secure=0
35
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
39
+
36
40
# Run the web server
37
41
exec /usr/sbin/apache2 -D FOREGROUND
You can’t perform that action at this time.
0 commit comments