summaryrefslogtreecommitdiff
path: root/use-sylius-with-homestead-instructions.md
diff options
context:
space:
mode:
Diffstat (limited to 'use-sylius-with-homestead-instructions.md')
-rw-r--r--use-sylius-with-homestead-instructions.md31
1 files changed, 31 insertions, 0 deletions
diff --git a/use-sylius-with-homestead-instructions.md b/use-sylius-with-homestead-instructions.md
new file mode 100644
index 0000000..d6aa0dd
--- /dev/null
+++ b/use-sylius-with-homestead-instructions.md
@@ -0,0 +1,31 @@
+## Install Sylius
+
+Although generally not advisable, you have to adjust your memory_limit in your php.ini to 2G.
+You can find out which file to edit with `php --info | grep php.ini`.
+After that you can install sylius with `composer create-project sylius/sylius-standard`.
+
+## Install Homestead
+Change to the sylius directory and run
+```
+composer require --dev laravel/homestead:dev-master
+./vendor/bin/homestead make
+```
+edit the .env file and set the DATABASE_URL to
+`DATABSE_URL=mysql://homestead:secret@127.0.0.1/homestead`
+
+
+copy the below contents to after.sh
+```
+# set memory_limit to 2G for composer
+sudo sed -i "s/memory_limit = .*/memory_limit = 2G/" "/etc/php/7.3/cli/php.ini"
+sudo sed -i "s/memory_limit = .*/memory_limit = 2G/" "/etc/php/7.4/cli/php.ini"
+```
+
+then run
+```
+vagrant up
+vagrant ssh
+cd code
+php bin/console sylius:install
+yarn install && yarn build
+```