(core) update fly.yml to use 0.1.66 version of flyctl and to use V2 of flydev (so no scaling of Nomad)

Test Plan: manually run github action on github to check if applciation is deploying and destroing afterwards

Reviewers: jarek

Reviewed By: jarek

Differential Revision: https://phab.getgrist.com/D3983
This commit is contained in:
Jakub Serafin
2023-08-01 10:18:52 +02:00
parent 9484fa14db
commit e387c6cf2c
4 changed files with 5 additions and 6 deletions

View File

@@ -28,7 +28,6 @@ async function main() {
const volName = getVolumeName();
if (!await appExists(name)) {
await appCreate(name);
await appScale(name);
await volCreate(name, volName);
} else {
// Check if volume exists, and create it if not. This is needed because there was an API
@@ -65,8 +64,7 @@ async function main() {
}
const appExists = (name) => runFetch(`flyctl status -a ${name}`).then(() => true).catch(() => false);
const appCreate = (name) => runAction(`flyctl apps create ${name} -o ${org}`);
const appScale = (name) => runAction(`flyctl scale memory 1024 -a ${name}`);
const appCreate = (name) => runAction(`flyctl launch --auto-confirm --name ${name} -r ewr -o ${org} --vm-memory 1024`);
const volCreate = (name, vol) => runAction(`flyctl volumes create ${vol} -s 1 -r ewr -y -a ${name}`);
const volList = (name) => runFetch(`flyctl volumes list -a ${name} -j`).then(({stdout}) => JSON.parse(stdout));
const appDeploy = (name, appRoot) => runAction(`flyctl deploy ${appRoot} --remote-only`, {shell: true, stdio: 'inherit'});

View File

@@ -1,4 +1,5 @@
app = "{APP_NAME}"
primary_region = "ewr"
kill_signal = "SIGINT"
kill_timeout = 5
processes = []