Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nembie/vercelit-laravel

Quickly configure and deploy your Laravel app on Vercel.
https://github.com/nembie/vercelit-laravel

bash-script deploy laravel vercel

Last synced: 8 days ago
JSON representation

Quickly configure and deploy your Laravel app on Vercel.

Awesome Lists containing this project

README

        

# 🚀 Vercelit Laravel

![Vercelit Laravel](https://github.com/Nembie/vercelit-laravel/assets/47114030/176b11f3-bdb2-4bb5-b652-8cebf099e1d2)

This Bash script automates the setup process for deploying a [Laravel](https://laravel.com) project on [Vercel](https://vercel.com). It allows you to configure essential environment variables, create required files and directories, and generate a Vercel configuration.

## 🚀 Usage

```bash
vercelit-laravel [-h] [-r]
```

## ⚙️ Installation

1. Clone this repository into a folder.

```bash
git clone https://github.com/Nembie/vercelit-laravel
```

2. Go to folder

```bash
cd vercelit-laravel
```

3. Run setup.sh
```bash
./setup.sh
```

4. Usage
```bash
// 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.

```bash
./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](https://github.com/Nembie/vercelit-laravel/blob/main/LICENSE).