This file contains 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 | |
# Deleting the cache and logs | |
sudo rm -rf app/cache/* app/logs/*.log | |
# This previous line will only work if the current user has the right to execute the command as sudo | |
# Add into /etc/sudoers | |
# USER_NAME ALL = NOPASSWD: /bin/rm -rf app/cache/* app/logs/*.log | |
# Replace USER_NAME by the owner of the repository |
This file contains 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/sh | |
app/console doctrine:database:drop --force | |
app/console doctrine:database:create | |
app/console doctrine:schema:update --force | |
app/console doctrine:fixtures:load -n # Remove this line if the bundle « doctrine/doctrine-fixtures-bundle » is not required by the project |