chore(cloud): add migrations

This commit is contained in:
Mauricio Siu
2024-10-04 00:04:52 -06:00
parent 3ce25e2ac8
commit 172d55311e
4 changed files with 4182 additions and 279 deletions
+2 -1
View File
@@ -2,7 +2,7 @@ import type { DeploymentJob } from "../queues/deployments-queue";
export const deploy = async (jobData: DeploymentJob) => {
try {
const result = await fetch("http://127.0.0.1:4000/deploy", {
const result = await fetch(`${process.env.SERVER_URL}/deploy`, {
method: "POST",
headers: {
"Content-Type": "application/json",
@@ -13,6 +13,7 @@ export const deploy = async (jobData: DeploymentJob) => {
console.log(data);
return data;
} catch (error) {
console.log(error);
throw error;
}
};