Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.
/ gitpack Public archive

Deploy your Laravel application to AWS Lambda by simply git pushing to a GitPack git remote

License

Notifications You must be signed in to change notification settings

thtg88/gitpack

Repository files navigation

GitPack

Please note the project has now been abandoned and is not actively maintained anymore

GitPack aims at making git-based deployments to AWS Lambda for Laravel applications. You get given a git remote, so you are a simple git push away from having your Laravel application on Lambda.

Usage

The idea is you register to GitPack, add your app, set your AWS user key and secret, set any env variable that the app may need. Finally you get a git remote and you can git push to it and your app will be deployed.

Technologies

The idea was that by using Spatie's SSH package, together with the Laravel pipelines architecture, a set of scripts get executed on a remote git server, before having the deployment completed.

GitPack also uses Bref and Serverless under the hood to complete the deployment.

Finally, the git server runs Gitolite to manage the different git remotes and user permissions

Development

Requirements

  • PHP 8.0: on macOS you can install it via Homebrew with brew install [email protected]
  • Composer v2: check the Composer website for instructions
  • Postgres v13: on macOS you can install it via Homebrew with brew install postgres@13
  • Node v14: you can install it using nvm via nvm install 14.17.1
  • Yarn: you can install it via npm i -g yarn

Setup

composer install
yarn
php artisan migrate --seed

Server

php artisan serve

CI

Some handy composer scripts are available to help with code quality:

  • composer run-script check-style: lint PHP files using PHP CS Fixer, and blade files using TLint
  • composer run-script stan: runs static analysis on PHP files using Psalm and its Laravel plugin
  • composer run-script test: runs unit and feature tests using PHPUnit and Laravel parallel testing feature via Paratest
  • composer run-script fix-style: fix PHP files style via PHP CS Fixer
  • composer run-script ci: runs the check-style, stan, and test scripts sequentially

Additionally CI is run using GitHub Actions

About

Deploy your Laravel application to AWS Lambda by simply git pushing to a GitPack git remote

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published