Giter Club home page Giter Club logo

Comments (6)

Eponymi avatar Eponymi commented on May 18, 2024

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.

PaddyLock avatar PaddyLock commented on May 18, 2024

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.

pjedrzejewski avatar pjedrzejewski commented on May 18, 2024

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.

PaddyLock avatar PaddyLock commented on May 18, 2024

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.

pjedrzejewski avatar pjedrzejewski commented on May 18, 2024

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.

PaddyLock avatar PaddyLock commented on May 18, 2024

Yes, thanks

from sylius.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.