Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miguelsimoni/symfony2-refresh-env
Refresh environment script for Symfony 2 (2.3)
https://github.com/miguelsimoni/symfony2-refresh-env
bash bash-script bashshell cache shell shell-script shell-scripts shellscript symfony symfony-console symfony2
Last synced: about 1 month ago
JSON representation
Refresh environment script for Symfony 2 (2.3)
- Host: GitHub
- URL: https://github.com/miguelsimoni/symfony2-refresh-env
- Owner: miguelsimoni
- Created: 2017-07-24T17:42:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-07-24T18:07:08.000Z (over 7 years ago)
- Last Synced: 2024-09-30T16:01:32.548Z (about 2 months ago)
- Topics: bash, bash-script, bashshell, cache, shell, shell-script, shell-scripts, shellscript, symfony, symfony-console, symfony2
- Language: Shell
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Refresh environment script for Symfony 2(.3)
I use this script on Symfony 2.3 projects. It should work for other versions...
## What for is this script useful?
- Delete `app/cache/` directory (since cache:clear doesn't work well for me)
- Execute `app/console cache:clear --env=?`
- Execute `app/console assets:install --env=?`
- Execute `app/console assetic:dump --env=?`? on the specified environment (default: `dev`)
## Setup
- Copy `refresh-env.sh` file to the application directory (e.g: `/var/www/symfonyapp/`)
- Then execute:
```bash
$ chmod +x refresh-env.sh
```## Usage
- Refreshing development environment:
```bash
$ ./refresh-env.sh
```Since `dev` is the default environment it doesn't require parameters.
- Refreshing production environment:
```bash
$ ./refresh-env.sh prod
```## Refreshing only twig cache
The `refresh-twig-cache.sh` script helps to clear just the twig cache and rebuild it for the pointed environment.
Previous instructions works fine for this script too.