我目前正在开发一个简单的webapp,它包含独立的前端(Vue)和后端(quarkus )项目。现在,我已经设置了一个MVP,在这里,前端显示一些简单的数据,这些数据是从后端调用的。为了获得一个有效的MVP,我需要设置CORS支持。但是,首先我想解释一下我的设置:
设置
我开始用npm run serve开发我的前端环境,用./mvnw quarkus:dev开发后端环境。前端运行在localhost:8081上,后端运行在localhost:8080上。Heroku允许使用命令heroku local web在本地运行应用程序。前端运行在端口0.0.0.0:5001上,后端运行在0.0.0.
我希望连接到远程PostgreSQL数据库(该数据库托管在Heroku上),并获得以下错误:
error: no pg_hba.conf entry for host "<My public IP address>", user "<username>", database "<dbname>", SSL off
这是我的app.module.ts
import { Module } from '@nestjs/common';
import { TypeOrmModule, TypeOrmMo
我使用,所以我在develop分支上工作,并且只将发布推到master。在我的Heroku帐户上创建了一个远程(名为heroku)之后,我开始将本地develop分支推到master,主要用于验证:
git push heroku develop:master
现在我的应用程序更成熟了,我只推出了master版本。但是,Git表示,我的本地develop分支和远程master分支已经分离:
Your branch and 'heroku/master' have diverged,
and have 1 and 11 different commits each, respe