Comments (6)
Hi @PaddyLock,
This is a common issue with Composer, not specific to Sylius. It sounds like you're running out of memory (I'm guessing you're using a t1.micro AWS image). You need to create a swap file (check out this old thread from AWS https://forums.aws.amazon.com/thread.jspa?threadID=53053) so that your instance does not run out of memory when trying to install/update dependencies.
Hope this helps!
from sylius.
Thanks, I have created a swap file and now It works. However I had to change the following value to false to get it to work the first time. Do you know why?
set :update_vendors, false
Also I had to manually create and copy contents to shared/app/config/parameters.yml on the server, as described here - http://capifony.org/
Thanks
from sylius.
Yes, seems like you copy vendors from previous release, without running composer, and it's the composer script that copies the parameters file. Parameters file is shared between deploys, you should simply fill it once and then deploy should work. :)
from sylius.
An additional step that is needed, which might help someone else is to set permissions on cache and logs folders:
sudo apt-get install acl
cd shared
sudo setfacl -R -m u:www-data:rwX -m u:whoami
:rwX app/logs
sudo setfacl -dR -m u:www-data:rwx -m u:whoami
:rwx app/logs
cd current
sudo setfacl -R -m u:www-data:rwX -m u:whoami
:rwX app/cache
sudo setfacl -dR -m u:www-data:rwx -m u:whoami
:rwx app/cache
cheers
from sylius.
Happy that it's resolved, we should write a nice cookbook entry about how to deploy/configure Sylius to Amazon. @PaddyLock I can close this right?
from sylius.
Yes, thanks
from sylius.
Related Issues (20)
- Wrong sorting of products in taxon after saving HOT 2
- Error When try to remove the last OrderItem of cart by Api HOT 1
- Issue with API Platform core v2.7.17 HOT 2
- [Order] Text going out of the frame in the Notes section HOT 2
- [UI] Different product box sizes on the product listing HOT 1
- Form errors during creation of product remove all product images
- [UI] Text going out of the frame in product description HOT 2
- [Refactor][ApiBundle] Unify section resolver usage HOT 1
- Unable to generate url for route sylius_shop_product_show when product slug contains slash HOT 1
- AverageRatingUpdater is called twice when a review is accepted HOT 1
- The complete checkout validation group is difficult to override
- Cannot complete payment via admin
- Api Cart Context calls wrong endpoint method HOT 2
- Invalid constraint configuration in AddProductReview.xml HOT 6
- Catalog promotion is still applying after end date, price is not restored to original HOT 5
- Would be nice to have sylius/promotion not require doctrine/orm
- Order tax adjustment is treated as shipping tax
- products order in the front-end is not showing in descending order ( the latest to the oldest) of the createdAt date only in production. HOT 1
- Symfony error in ResourceBundle HttpFoundationRequestHandler
- As an Admin, I want to resend the confirmation email of an Order that is `fulfilled`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sylius.