-
Notifications
You must be signed in to change notification settings - Fork 1
Hotfix/memory usage #36
base: master
Are you sure you want to change the base?
Conversation
| # 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) |
There was a problem hiding this comment.
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).
There was a problem hiding this comment.
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...
05acfdf to
0b2f8fb
Compare
| #dir=$(cd $(dirname "${BASH_SOURCE[0]}") && pwd) | ||
| # | ||
| # So for now lets assume we always are inside an ITKDev docker cotainer. | ||
| dir=/app/bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| dir=/app/bin | |
| dir=$(cd $(dirname "$0") && pwd) |
or
| dir=/app/bin | |
| # @see https://stackoverflow.com/a/1638397 | |
| dir=$(cd $(dirname "$(readlink -f "$0")") && pwd) |
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
Checklist
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