Post-Installation Steps and Additional Info
If you want to commit from within the VM, it is recommended to set the right Git preferences:
git config --global user.email "email@example.com" git config --global user.name "Your Name" git config --global push.default simple git config --global pull.rebase true
If you like to change the default configuration of the virtual machine, you can do this by following the example below.
export VM_CPUS=2 export VM_MEMORY=4192 export VM_NAME="My custom name" export VM_IP_PREFIX="10.10.0."
For non-standard setups you have the option to disable shared folder with Spryker code.
If you decide not to use shared folders feature, it’s your responsibility to get Spryker code into the /data/shop/development/current directory of your VM. For example, you can use a file synchronization utility like Unison.
In case you already have your SSH keys set up on your host system, it can be more convenient to directly use them for downloading the repository:
Before proceeding with the installation, please make sure you have your SSH public key in GitHub.
In order to generate your SSH key, follow the steps presented in the following article: Generating SSH keys.
A common Spryker Project is like a typical web project. There is the project level code and the Spryker Commerce OS code. Spryker Commerce OS code is installed into the vendor folder. As you are running both Yves and Zed inside the VM, you will actually see the source code for both. They share a similar directory layout, but specific folders are indicated by the name of the application. So, a folder named Zed naturally belongs to Zed. A Shared folder belongs to Yves and Zed.
|data||log files and caches|
|src||your project code|
|static||static assets and the public document roots for Yves and Zed|
|vendor||packages installed via composer. In particular vendor/spryker contains Yves and Zed bundles.|
|MySQL Server||3306||Username is development, password is mate20mg.|
|PostgreSQL Server||5432||Username is development, password is mate20mg.|
|Redis||10009||You can explore Redis with Redis Desktop Manager or a similar tool.|
Catches all the mails that are sent during development in the Dev VM.
See Default Queue Engine for more information.
To optimize the performance of the system, you can enable the Opcache. This is not recommend for development, because you may get strange results. To activate the Opcache, just put the following lines at the end of the
php.ini and restart php.
This configuration is not optimized for production environments!
sudo nano /etc/php7.2/fpm/php.ini
[Cache] ; configuration for php ZendOpcache module ; priority=05 zend_extension=opcache.so ; Determines if Zend OPCache is enabled opcache.enable=1 ; Determines if Zend OPCache is enabled for the CLI version of PHP >opcache.enable_cli=1 ; The OPcache shared memory storage size. opcache.memory_consumption=64 ; The amount of memory for interned strings in Mbytes. opcache.interned_strings_buffer=8 ; The maximum number of keys (scripts) in the OPcache hash table. ; Only numbers between 200 and 100000 are allowed. opcache.max_accelerated_files=8000 ; The maximum percentage of "wasted" memory until a restart is scheduled. opcache.max_wasted_percentage=5 ; When disabled, you must reset the OPcache manually or restart the ; webserver for changes to the filesystem to take effect. opcache.validate_timestamps=1 ; How often (in seconds) to check file timestamps for changes to the shared ; memory storage allocation. ("1" means validate once per second, but only ; once per request. "0" means always validate) opcache.revalidate_freq=1 ; If enabled, a fast shutdown sequence is used for the accelerated code opcache.fast_shutdown=1
sudo -i service php7.2-fpm restart exit
It is advised to label your VM (especially when you have more than a single one):
This will display vagrant@my-project in your console starting with the next login.
To set a domain name for your Spryker shop, change values of the following keys in the shop configuration file:
$config[ApplicationConstants::HOST_ZED] = 'zed.de.XXX.local'; $config[ApplicationConstants::HOST_YVES] = 'www.de.XXX.local';
The first key is responsible for proper call from Yves to Zed, while the second one is used for domain name used for session cookies.
To check for newer released versions, we recommend that you follow the steps described here Checking for newer versions.
- B2B Demo Shop Installation Guide
- B2C Demo Shop Installation Guide
- Installing Spryker with Custom Set of Modules
- Legacy Demoshop Installation Guide
Last review date: Feb 11, 2019