Skip to content

Quickly configure and deploy your Laravel app on Vercel.

License

Notifications You must be signed in to change notification settings

Nembie/vercelit-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Vercelit Laravel

Vercelit Laravel

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.

🚀 Usage

vercelit-laravel [-h] [-r]

⚙️ Installation

  1. Clone this repository into a folder.
git clone https://github.com/Nembie/vercelit-laravel
  1. Go to folder
cd vercelit-laravel
  1. Run setup.sh
./setup.sh
  1. Usage
// In your Laravel project directory
vercelit-laravel

🧰 Options

Overwrite Vercel configuration

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

🔧 Enviroment variables

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.

🤝 Contribution

If you find any issues or have suggestions for improvements, feel free to open a pull request or issue. Your contribution is highly appreciated.

📝 License

This package is open-sourced software licensed under the MIT license.