Skip to content

Conversation

@greyvugrin
Copy link
Contributor

Updated pm2 & laravel release commands.

Fixed an issue where custom log paths like DockerLocal/logs would not have the OWNER_USER:OWNER_GROUP applied at all folder levels.

Caused issues:

  • deploy.sh wasn't able to delete old releases
  • logrotate on log files would fail bc www-data wasn't able to delete old logs


## Make Logs Directory
sudo mkdir -p "$REPO_ROOT/$LARAVELLOGSFOLDER_LOCATION"
sudo mkdir -m 775 -p "$REPO_ROOT/$LARAVELLOGSFOLDER_LOCATION"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this will make the end directory have the correct permissions, but not the full tree. hence the looping afterward

Copy link
Owner

@amurrell amurrell left a comment

Choose a reason for hiding this comment

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

What about wordpress-deploy?

@amurrell
Copy link
Owner

amurrell commented Aug 1, 2024

Reminder: You mentioned that you may still have log permission issues and this may not solve it?

@amurrell amurrell changed the title Update permissions for pm2, laravel app-release commands WIP - Update permissions for pm2, laravel app-release commands Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants