You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠ DO NOT USE SSH KEY WITH PASSPHRASE, this vagrant installation is non-interactive.<br>
47
-
If your ssh key has been created with a passphrase, please create an other one and add it to your git account.
47
+
If your ssh key has been created with a passphrase, please create an other one.
48
+
1. On Windows only: open UEFI BIOS and make sure virtualization is turned 'on'
49
+
1. On Windows only: open powershell as administrator and run: ``Add-MpPreference -ExclusionProcess winnfsd.exe``
50
+
1. On Windows only: open ``C:\Windows\System32\drivers\etc\hosts`` as administrator then add ``network_ip`` and ``magento_url``<br>Default values would be: ``192.168.200.50 dev.magento.com``
51
+
1. On Linux only: in order to install NFS, run ``sudo apt install nfs-kernel-server``
52
+
1. On Linux/MacOS only: open ``/etc/hosts`` as sudo then add ``network_ip`` and ``magento_url``<br>Default values would be: ``192.168.200.50 dev.magento.com``
53
+
54
+
### Installation
55
+
48
56
1. Clone this project: ``git clone [email protected]:zepgram/magento2-fast-vm.git``
49
-
1. On linux only in order to install NFS, run: ``sudo apt install nfs-kernel-server``
50
-
1. On windows only, make sur virtualization is turned 'on' in UEFI BIOS
51
-
1. Copy and past ``ssh.example``, rename it ``ssh`` and put your ``id_rsa`` and ``id_rsa.pub`` keys
52
-
1. Copy and past ``config.yaml.example``, rename it ``config.yaml`` and add your configurations according to [Yaml config overview](#yaml-config-overview)
53
-
1. As admin open your host file: ``C:\Windows\System32\drivers\etc\hosts`` for Windows or ``/etc/hosts``for Linux/macOS and add vm_conf[network_ip] and magento[url]<br>
54
-
Default values would be: ``192.168.200.50 dev.magento.com``
55
-
1. On windows 10 start your terminal as administrator and uncomment option ``# v.gui=true`` in VagrantFile. You can disable it after first setup
56
-
1. Run: ``vagrant up`` in your terminal: setup start! (duration: ~20 minutes)
57
-
1. Once installation is done run: ``vagrant ssh`` to access to your guest machine
57
+
1. Copy/past: ``ssh.example`` rename it ``ssh`` then put your ``id_rsa`` and ``id_rsa.pub`` keys
58
+
1. Copy/past: ``config.yaml.example`` rename it ``config.yaml``<br>Then customize configurations according to [Yaml config overview](#yaml-config-overview)
59
+
1. If you want to import an existing database: create a compressed sql dump and name it ``db-dump.sql.gz``.<br>You must also fill ``crypt_key`` in config.yaml
60
+
1. To start install run: ``vagrant up`` (duration: ~20 minutes)
61
+
1. Finally run: ``vagrant ssh`` to access to your guest machine
58
62
59
63
### Yaml config overview
60
64
* Vmconf
@@ -88,13 +92,14 @@ Default values would be: ``192.168.200.50 dev.magento.com``
88
92
* edition: magento project edition, used only on composer source installation (community)
89
93
* 'community' install magento community edition
90
94
* 'enterprise' install magento enterprise edition
91
-
* version: set magento version and also define PHP version (2.3.*)
95
+
* version: set magento version and also define PHP version (2.3.3)
92
96
* php_version: override the default required version by yours, for example '7.1' (default)
93
97
* sample: install sample data, used only on composer source installation (true)
94
98
* mode: magento mode (developer)
95
99
* currency: set currency (USD)
96
100
* language: set language (en_US)
97
101
* time_zone: set time zone (Europe/London)
102
+
* crypt_key: crypt key under your app/etc/env.php (only required if db-dump.sql.gz exist)
98
103
99
104
100
105
### Path
@@ -103,8 +108,8 @@ Default values would be: ``192.168.200.50 dev.magento.com``
103
108
104
109
### Mount options
105
110
106
-
#### RSYNC - new (v1.2.0)
107
-
Only usefull on path set to ``root``.<br>
111
+
#### RSYNC
112
+
Only useful on path set to ``root``.<br>
108
113
* Loss of performance is due to files generated on the fly, by excluding them you can mount the whole directory ``root`` and get performance equal to an ``app`` mount.
109
114
* The ``vagrant rsync-auto`` is launched by default on vagrant up, even with that if you need to force an update you can run ``vagrant rsync``. <b>Terminal should be kept open for rsync-auto: do not close it.</b>
110
115
* Rsync is unilateral, your host machine push files to guest but not the other way.<br>
@@ -135,13 +140,9 @@ Those provisions will be executed on pre-defined sequences:
135
140
## Usage
136
141
137
142
### Permission
138
-
Magento file system owner is configured for ``magento`` user, it means all commands in magento project must be executed by this user.<br>
139
-
By default command line ``vagrant ssh`` will log you as magento user.<br>
140
-
* To logout and get back to vagrant user you can run ``exit``
141
-
* To login as magento user you can run ``sudo su magento`` or ``bash``
142
-
* To re-apply magento permission you can run ``permission`` in command line, used only for ``app`` path and ``default`` mount.
143
-
144
-
<b>FI: Password for magento user is ``magento``</b>
143
+
Magento file system owner is configured for ``vagrant`` user, it means all commands in magento project must be executed by this user.<br>
144
+
By default command line ``vagrant ssh`` will log you as vagrant user.<br>
145
+
* To re-apply magento permission you can run ``permission`` in command line: this is only applicable for ``app`` path or ``default`` mount configurations.
0 commit comments