Last active
March 3, 2020 16:17
-
-
Save m1stermanager/ffd380088002d2e7c20c618a7bfad2c5 to your computer and use it in GitHub Desktop.
random devops-ish stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. see who the owner is w/ `ls -al` | |
2. use `chown <target-user-name>:<target-user-name> <target directory or file>` ie. `chown user:user dir/file` | |
-- use -R if needed (recursive) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source: https://maryrosecook.com/blog/post/freeing-disk-space-on-your-linux-server | |
1. ssh into box | |
2. sudo | |
3. get to root, run `du -h --max-depth=1` | |
4. follow the trail of the largest directories, removing what you don't need |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source: https://symfony.com/doc/3.4/deployment.html#d-clear-your-symfony-cache | |
1. get to the app root (/var/www perhaps?) | |
2. find out what env is running? | |
3. run `php bin/console cache:clear --env=<whatever env> --no-debug` | |
4. might have to run `php bin/console cache:warmup --env=<whatever env> --no-debug` | |
5. checkout the `<app root>/var/cache/<whatever env>` folder w/ `ls -al`. ensure the owner matches all the other folders so it is writable by the user running the web service | |
6. conditionally do the steps for the "change directory/file owner", and do so w/ the -R flag |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment