Skip to content

Instantly share code, notes, and snippets.

@codepotato
Last active October 6, 2021 20:45
Show Gist options
  • Save codepotato/8b05416c2ce135c6b23ab9d81bb97ef4 to your computer and use it in GitHub Desktop.
Save codepotato/8b05416c2ce135c6b23ab9d81bb97ef4 to your computer and use it in GitHub Desktop.
Simplify deployments with Lasso and Laravel
echo "--------------------------------------"
echo "==> Lasso that shizzle"
echo "--------------------------------------"
php artisan lasso:publish
echo "--------------------------------------"
echo "==> Adding the created json to GIT"
echo "--------------------------------------"
git add -A
git commit -m "Updated assets wrangled 🤠"
echo "--------------------------------------"
echo "==> Let's go deploy that now for you"
echo "--------------------------------------"
git push
echo ""
echo ""
echo "✔ All Done!"
@codepotato
Copy link
Author

Hat-tip to @Sammyjo20 for the awesome package.

@codepotato
Copy link
Author

Don't forget to chmod u+x deploy.sh to make it executable

@codepotato
Copy link
Author

For those landing here and thinking WTF, if you make a deploy.sh file in the root of your laravel installation, copy in the above (tweak if required) and then run the chmod command above you can then type ./deploy.sh to automatically run lasso and commit for a deployment.

@codepotato
Copy link
Author

I'm THAT lazy that I can't be arsed to write four commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment