Skip to content

Instantly share code, notes, and snippets.

@mrchimp
Created February 13, 2020 11:00
Show Gist options
  • Select an option

  • Save mrchimp/3b7c338f109b28e024283e417f35e60b to your computer and use it in GitHub Desktop.

Select an option

Save mrchimp/3b7c338f109b28e024283e417f35e60b to your computer and use it in GitHub Desktop.
#!/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