Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/hooopo/tidb-serverless-vercel

GPT Action for https://chat.openai.com/g/g-YQhsPRkRF-mysql-playground
https://github.com/hooopo/tidb-serverless-vercel

Last synced: 14 days ago
JSON representation

GPT Action for https://chat.openai.com/g/g-YQhsPRkRF-mysql-playground

Awesome Lists containing this project

README

        

## Dev

setup .env file

```
DATABASE_URL=mysql://user:[email protected]:4000/test
```

```
npm install
npm run start

```

## Prod

### clone codebase

```
git clone https://github.com/hooopo/tidb-serverless-vercel.git
```
and

```
cd tidb-serverless-vercel
```

### Link to vercel

```
vercel link
```

> Vercel CLI 31.0.4
> ? Set up “~/hooopo/tttttt”? [Y/n] y
>
> ? Which scope should contain your project? hooopo
>
> ? Link to existing project? [y/N] n
>
> ? What’s your project’s name? hello
>
> ? In which directory is your code located? ./

### Setup env

```
vercel env add DATABASE_URL
```

Make sure the 'Production' option is checked, like this:

image

### Deploy to production

```
vercel --prod
```