แก้ env
This commit is contained in:
parent
9975f2c607
commit
a984acb683
2 changed files with 4 additions and 4 deletions
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
|
|
@ -9,8 +9,8 @@ env:
|
||||||
REGISTRY: docker.frappet.com
|
REGISTRY: docker.frappet.com
|
||||||
IMAGE_NAME: ehr/bma-ehr-development-service
|
IMAGE_NAME: ehr/bma-ehr-development-service
|
||||||
DEPLOY_HOST: frappet.com
|
DEPLOY_HOST: frappet.com
|
||||||
COMPOSE_PATH: /home/frappet/docker/bma-ehr
|
# COMPOSE_PATH: /home/frappet/docker/bma-ehr
|
||||||
# COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-development
|
COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr-development
|
||||||
jobs:
|
jobs:
|
||||||
# act workflow_dispatch -W .github/workflows/release.yaml --input IMAGE_VER=test-v1 -s DOCKER_USER=sorawit -s DOCKER_PASS=P@ssword -s SSH_PASSWORD=P@ssw0rd
|
# act workflow_dispatch -W .github/workflows/release.yaml --input IMAGE_VER=test-v1 -s DOCKER_USER=sorawit -s DOCKER_PASS=P@ssword -s SSH_PASSWORD=P@ssw0rd
|
||||||
release-test:
|
release-test:
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ class CallAPI {
|
||||||
//Get
|
//Get
|
||||||
public async GetData(request: any, @Path() path: any) {
|
public async GetData(request: any, @Path() path: any) {
|
||||||
const token = request.headers.authorization;
|
const token = request.headers.authorization;
|
||||||
const url = process.env.API + path;
|
const url = process.env.API_URL + path;
|
||||||
try {
|
try {
|
||||||
const response = await axios.get(url, {
|
const response = await axios.get(url, {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
@ -33,7 +33,7 @@ class CallAPI {
|
||||||
//Post
|
//Post
|
||||||
public async PostData(request: any, @Path() path: any, sendData: any) {
|
public async PostData(request: any, @Path() path: any, sendData: any) {
|
||||||
const token = request.headers.authorization;
|
const token = request.headers.authorization;
|
||||||
const url = process.env.API + path;
|
const url = process.env.API_URL + path;
|
||||||
try {
|
try {
|
||||||
const response = await axios.post(url, sendData, {
|
const response = await axios.post(url, sendData, {
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue