This Bash script automates the setup process for deploying a Laravel project on Vercel. It allows you to configure essential environment variables, create required files and directories, and generate a Vercel configuration.
vercelit-laravel [-h] [-r]
- Clone this repository into a folder.
git clone https://github.com/Nembie/vercelit-laravel
- Go to folder
cd vercelit-laravel
- Run setup.sh
./setup.sh
- Usage
// In your Laravel project directory
vercelit-laravel
You can use the -r or --reinstall option to reinstall the setup, overwriting necessary files. This is useful if you need to reset or update your configuration.
./vercelit-laravel.sh -r
The script prompts you to enter values for the following environment variables:
APP_URL: The URL for your Laravel application (default: https://yourproductionurl.com).
APP_ENV: The environment for your application (default: production).
APP_DEBUG: Whether debugging is enabled (default: true).
This script defaults to using the .env.vercel
file if present; otherwise, it will use the .env
file.
If you find any issues or have suggestions for improvements, feel free to open a pull request or issue. Your contribution is highly appreciated.
This package is open-sourced software licensed under the MIT license.