Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

Commit 071e7e8

Browse files
author
Alexander Paliarush
committed
- Improved documentation
1 parent ec7a8b9 commit 071e7e8

File tree

2 files changed

+19
-43
lines changed

2 files changed

+19
-43
lines changed

README.md

+18-42
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@ If you never used Vagrant before, read [Vagrant Docs](https://docs.vagrantup.com
4545
cd vagrant-magento
4646
vagrant up
4747
```
48-
1. At some point you will be prompted to [set up synchronization with PHP Storm](docs/phpstorm-configuration.md)
48+
1. Add corresponding record to your `hosts` file on the host machine:
49+
50+
```
51+
192.168.10.11 magento2.vagrant
52+
```
53+
1. After the installation is complete, [set up synchronization with PHP Storm](docs/phpstorm-configuration.md)
4954
5055
###To reinstall Magento
5156
To save some time and get clear Magento installation, you can skip installation of software like web server or php.
@@ -59,50 +64,21 @@ vagrant provision --provision-with install_magento
5964
6065
### After installation
6166
62-
Upon a successful installation, you'll see the location and URL of the newly-installed Magento 2 application:
63-
```
64-
Magento application was deployed in /var/www/magento2ce and installed
65-
Access front store at http://${HOST}/
66-
Access admin panel at http://${HOST}/${admin_frontame}/
67-
```
68-
69-
`/var/www/magento2ce` is a path to your Magento installation on the VM.
67+
Upon a successful installation, you'll see the location and URL of the newly-installed Magento 2 application in console.
68+
See a list of [default credentials and settings](README.md#default-credentials) below.
7069
71-
### Default credentials
72-
73-
```
74-
db host: localhost (not accessible remotely)
75-
db user/password: magento/magento
76-
db name: magento
70+
### Default credentials and settings
7771
78-
also available db user/password: root/password
72+
Web access:
73+
- Access storefront at `http://magento2.vagrant`
74+
- Access admin panel at `http://magento2.vagrant/admin/`
75+
- Magento admin user/password: `admin/123123q`
7976
80-
Magento admin user/password: admin/123123q
81-
```
82-
83-
### Hostname
84-
85-
The hostname of the Magento application is derived from hostname of the VM defined in the `Vagrantfile`:
86-
```
87-
config.vm.hostname = "magento2.vagrant"
88-
```
89-
90-
Change this value in the `Vagrantfile` if you want to use different hostname.
91-
92-
If Vagrant can't determine hostname of the VM for some reason, it will use its IP address (also specified in `Vagrantfile`).
93-
94-
Also make sure you update your system `hosts` file with a record that links the IP address and hostname of the VM.
95-
For the following `Vagrantfile`
96-
```
97-
...
98-
config.vm.network :private_network, ip: '192.168.10.11'
99-
config.vm.hostname = "magento2.vagrant"
100-
...
101-
```
102-
Specify the following in your `hosts` file:
103-
```
104-
192.168.10.11 magento2.vagrant
105-
```
77+
Codebase and DB access:
78+
- Path to your Magento installation on the VM: `/var/www/magento2ce`
79+
- MySQL DB host: `localhost` (not accessible remotely)
80+
- MySQL DB name: `magento`
81+
- MySQL DB user/password: `magento/magento`. Alternatively `root/password`
10682
10783
### GitHub Limitations
10884

install_magento.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ php ${install_cmd}
7575
chown -R vagrant:vagrant ${magento_dir}
7676

7777
# Enable Magento cron jobs
78-
echo "*/1 * * * * php ${magento_dir}/bin/magento cron:run &" | crontab -u vagrant -
78+
echo "* * * * * php ${magento_dir}/bin/magento cron:run &" | crontab -u vagrant -
7979

8080
set +x
8181
echo "

0 commit comments

Comments
 (0)