Created
February 13, 2020 11:00
-
-
Save mrchimp/3b7c338f109b28e024283e417f35e60b to your computer and use it in GitHub Desktop.
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
| #!/usr/bin/env bash | |
| echo "Composer install..." | |
| ./enso composer install | |
| echo "Yarn install..." | |
| ./enso yarn install | |
| echo "Publishing assets..." | |
| if [ $2 = "5" ]; then | |
| ./enso art vendor:publish | |
| else | |
| ./enso art vendor:publish --all | |
| fi | |
| echo "Publishing Enso assets..." | |
| ./enso art vendor:publish --tag assets --force | |
| echo "Migrating database..." | |
| ./enso art migrate | |
| if [ $1 = "production" ]; then | |
| echo "Clearing view cache..." | |
| ./enso art view:clear | |
| echo "Caching config..." | |
| ./enso art config:cache | |
| echo "Caching routes..." | |
| ./enso art route:cache | |
| echo "Running yarn for production..." | |
| ./enso yarn production | |
| else | |
| echo "Clearing view cache..." | |
| ./enso art view:clear | |
| echo "Clearing config cache..." | |
| ./enso art config:clear | |
| echo "Clearing route cache..." | |
| ./enso art route:clear | |
| echo "Running yarn watch..." | |
| ./enso yarn watch | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment