markdown 与prisma的码头工人

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 与prisma的码头工人相关的知识,希望对你有一定的参考价值。

# Init
https://www.prisma.io/docs/get-started/01-setting-up-prisma-new-database-JAVASCRIPT-a002/

# Work process
in prisma.yml  
set endpoint as
```
endpoint: http://localhost:4466
```

```
cd ./prisma
prisma deploy
```
this will hook `seeding` automatically too

# Import and Export
[doc](https://www.prisma.io/docs/prisma-cli-and-configuration/data-import-and-export-jsw9/)  
[how to](https://www.prisma.io/tutorials/data-import-and-export-with-prisma-cs03/)

# When Error
Sympton: if I can't connect to docker 
```
docker request to http://localhost:4466/ failed,
```
Suspect: prisma server might be not running
Check: use below command
```
docker ps
```
then I can see  
```
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                 NAMES
b34637530bdb        mysql:5.7           "docker-entrypoint.s…"   6 days ago          Up 5 minutes        3306/tcp, 33060/tcp   temple-resourc
```
here the mysql is running but no prisma server...
```
        > docker images
REPOSITORY             TAG                 IMAGE ID            CREATED             SIZE
prismagraphql/prisma   1.29                8fcf2f896614        11 days ago         257MB
mysql                  5.7                 ee7cbd482336        3 weeks ago         372MB
```
i can see prisma is installed but not running....  
Solution : just restart computer.... (I think when the port(4466) is blocked somehow... it can't run prisma so just restarting computer will solve it)

以上是关于markdown 与prisma的码头工人的主要内容,如果未能解决你的问题,请参考以下文章

markdown 批量重启小时内挂掉的码头工人

markdown 码头工人卷

markdown havre /像这样的码头工人运行嵌入式squashfs图像

InfluxDB 和 Grafana:InfluxDB 错误:错误请求 |码头工人

码头工人撰写孤儿容器警告

码头工人群或牧场牛中的芹菜工人