我的构建在 travis-ci 上被破坏了:
$ psql -c 'create database travis_ci_test;' -U postgres
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Run Code Online (Sandbox Code Playgroud)
命令“psql -c '创建数据库travis_ci_test;' -U postgres" 失败并在期间以 2 退出。
我在用这个.travis.yml:
2020 年 5 月 31 日更新的 Yaml 版本:
dist: trusty
env:
global:
- PGPORT=5433
services:
- postgresql
addons:
postgresql: '10'
apt:
packages:
- postgresql-10
- postgresql-client-10
before_script:
- export RUBYOPT='-W0' # to remove ruby …Run Code Online (Sandbox Code Playgroud) 仅当使用一些预请求脚本运行本地应用程序的请求时,我才遇到此问题:
Error: Parse Error: Header overflow
Postman 版本是:v7.25.0。
PS:对于我的服务器应用程序的相同请求,我没有收到任何错误。