Skip to content

Commit

Permalink
0.0.470
Browse files Browse the repository at this point in the history
  • Loading branch information
ivansglazunov committed Sep 9, 2024
1 parent 452b01a commit 0896dfe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions imports/engine-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ const _generateEngineStr = ({ needNPX, operation, isDeeplinksDocker, isDeepcaseD
const arr = []
arr.push(`cd "${path.normalize(`${_deeplinks}/`)}"`);
arr.push(`docker compose pull`);
arr.push(`docker compose -p deep up postgres hasura`);
arr.push(`docker compose -p deep up postgres hasura -d`);
arr.push(`docker volume create deep-db-data`);
if (platform === "win32") arr.push(`mkdir -p ${envs['MIGRATIONS_DIR']}`);
arr.push(`npx -y -q wait-on --timeout 100000 ${
Expand All @@ -346,7 +346,7 @@ const _generateEngineStr = ({ needNPX, operation, isDeeplinksDocker, isDeepcaseD
'http-get://localhost'
}:8080/healthz`);
if (+envs['RESTORE_VOLUME_FROM_SNAPSHOT']) arr.push(`docker run -v "${envs['MIGRATIONS_DIR']}":/migrations -v deep-db-data:/data --rm --name links --entrypoint "sh" deepf/deeplinks:main -c "cd / && tar xf /backup/volume.tar --strip 1 && cp /backup/.migrate /migrations/.migrate"`);
arr.push(`docker compose -p deep up`);
arr.push(`docker compose -p deep up -d`);
if (+envs['MANUAL_MIGRATIONS']) arr.push(`npm run migrate -- -f ${envs['MIGRATIONS_DIR']}/.migrate`);
str = arr.join(' && ');
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@deep-foundation/deeplinks",
"version": "0.0.469",
"version": "0.0.470",
"license": "Unlicense",
"type": "module",
"scripts": {
Expand Down

0 comments on commit 0896dfe

Please sign in to comment.