Created
February 6, 2019 14:08
-
-
Save rajeshisnepali/b506fb01e6dbae42cca3a4a25c62f85c to your computer and use it in GitHub Desktop.
Give permission and change ownership to run Laravel application
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
#!/bin/bash | |
# to be able to work this function globally, copy or create link in /usr/local/bin | |
# Change ownership for .env | |
sudo chown $USER:$USER .env | |
# Give write Permission to /bootstrap/cache & /storage | |
sudo chown -R $USER:www-data storage bootstrap/cache | |
sudo chmod -R ug+rwx storage bootstrap/cache |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment