This repository was archived by the owner on Oct 1, 2020. It is now read-only.
File tree 5 files changed +44
-9
lines changed
5 files changed +44
-9
lines changed Original file line number Diff line number Diff line change @@ -84,3 +84,9 @@ if [ ${is_windows_host} -eq 1 ]; then
84
84
chown -R vagrant:vagrant /var/www
85
85
chmod -R 755 /var/www
86
86
fi
87
+
88
+ # Install RabbitMQ (is used by Enterprise edition)
89
+ apt-get install -y rabbitmq-server
90
+ rabbitmq-plugins enable rabbitmq_management
91
+ invoke-rc.d rabbitmq-server stop
92
+ invoke-rc.d rabbitmq-server start
Original file line number Diff line number Diff line change @@ -39,17 +39,23 @@ for db_name in "${db_names[@]}"; do
39
39
mysql -e " drop database if exists ${db_name} ; create database ${db_name} ;"
40
40
done
41
41
42
+ # Install git
43
+ apt-get install -y git
44
+
42
45
# Install Magento application
43
46
cd ${magento_dir}
44
- github_token =" /vagrant/local.config/github.oauth.token "
45
- if [ -f ${github_token } ]; then
47
+ composer_auth_json =" /vagrant/local.config/composer/auth.json "
48
+ if [ -f ${composer_auth_json } ]; then
46
49
set +x
47
- echo " Installing GitHub OAuth token from ${github_token} ..."
48
- composer config -g github-oauth.github.com ` cat ${github_token} `
50
+ echo " Installing composer OAuth tokens from ${composer_auth_json} ..."
49
51
set -x
50
- composer install
52
+ if [ ! -d /home/vagrant/.composer ] ; then
53
+ sudo -H -u vagrant bash -c ' mkdir /home/vagrant/.composer'
54
+ fi
55
+ cp ${composer_auth_json} /home/vagrant/.composer/auth.json
56
+ sudo -H -u vagrant bash -c ' composer install'
51
57
else
52
- composer install --prefer-source
58
+ sudo -H -u vagrant bash -c ' composer install --prefer-source'
53
59
fi
54
60
55
61
admin_frontame=" admin"
@@ -69,6 +75,16 @@ install_cmd="./bin/magento setup:install \
69
75
--admin-password=123123q \
70
76
--cleanup-database \
71
77
--use-rewrites=1"
78
+
79
+ # Configure Rabbit MQ
80
+ if [ -d " ${magento_dir} /app/code/Magento/Amqp" ]; then
81
+ install_cmd=" ${install_cmd} \
82
+ --amqp-host=localhost \
83
+ --amqp-port=5672 \
84
+ --amqp-user=guest \
85
+ --amqp-password=guest"
86
+ fi
87
+
72
88
chmod +x bin/magento
73
89
php ${install_cmd}
74
90
Original file line number Diff line number Diff line change 1
1
/*
2
- ! /.gitignore
2
+ ! /.gitignore
3
+ ! /composer
4
+ /composer /*
5
+ ! /composer /auth.json.dist
Original file line number Diff line number Diff line change
1
+ {
2
+ "github-oauth": {
3
+ "github.com": "your-github-token"
4
+ },
5
+ "http-basic": {
6
+ "repo.magento.com": {
7
+ "username": "your-magento-repo-public-key",
8
+ "password": "your-magento-repo-secret-key"
9
+ }
10
+ }
11
+ }
Original file line number Diff line number Diff line change 4
4
<Directory /var/www/magento2ce>
5
5
Options Indexes FollowSymLinks
6
6
AllowOverride All
7
- Order allow,deny
8
- Allow from all
7
+ Require all granted
9
8
</Directory>
10
9
ErrorLog "${APACHE_LOG_DIR}/error.log"
11
10
CustomLog "${APACHE_LOG_DIR}/access.log" common
You can’t perform that action at this time.
0 commit comments