Skip to content

How to upgrade the application correctly #9

@zentavr

Description

@zentavr

Hi,

There are lines at the docker-entrypoint file:

elif [ ! -d "node_modules" ] || [ ! "$(ls -qAL node_modules 2>/dev/null)" ]; then
if [ -f "yarn.lock" ]; then
echo "Node modules not installed. Installing using yarn ..."
yarn install --prod --silent
else
echo "Node modules not installed. Installing using npm ..."
npm install --only=prod --silent
fi

If we upgrade strapio to the newer version, docker-entrypoint sees that the node_modules folder exists and wont install the upgrades if there are any. How to perform here correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions