Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Conversation

cableman
Copy link

Link to ticket

https://jira.itkdev.dk/browse/SUPP0RT-1261 and https://jira.itkdev.dk/browse/SUPP0RT-1264

Description

When symfony commands do not complete the changes to the database is not commited to the database.

Screenshot of the result

Screenshot from 2023-10-25 15-42-01

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

If your code does not pass all the requirements on the checklist you have to add a comment explaining why this change
should be exempt from the list.

Additional comments or questions

N/A

@cableman cableman changed the base branch from develop to master October 25, 2023 14:11
Comment on lines +3 to +6
# This do not work when running through docker compose exec.
# It defaults to /home/deploy and not the working dir.
#
#dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How and where does this not evaluate to /app/bin when run with docker compose exec?

I assume it's run as docker compose --file docker-compose.server.yml exec phpfpm bin/read-all-feeds and in this case the working directory must be /app (otherwise bin/read-all-feeds does not exist).

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the servers cron job where it executes from.

It returns no-such-file /home/deploy/console @rimi-itk so the old way don't default to /app/bin as not bash context have been loaded...

@cableman cableman force-pushed the hotfix/memory-usage branch from 05acfdf to 0b2f8fb Compare October 26, 2023 10:18
#dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd)
#
# So for now lets assume we always are inside an ITKDev docker cotainer.
dir=/app/bin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
dir=/app/bin
dir=$(cd $(dirname "$0") && pwd)

or

Suggested change
dir=/app/bin
# @see https://stackoverflow.com/a/1638397
dir=$(cd $(dirname "$(readlink -f "$0")") && pwd)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants