From 6e147cbbdbd74d13fde5fb7c2e5fcc31ea79582d Mon Sep 17 00:00:00 2001 From: Augusto Gunsch Date: Mon, 27 Dec 2021 19:09:10 -0300 Subject: [PATCH] Improve dynos --- Procfile.txt | 4 ++-- migrate.sh | 3 +++ run.sh | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) create mode 100755 migrate.sh create mode 100755 run.sh diff --git a/Procfile.txt b/Procfile.txt index 44a5a1a..903bdf9 100644 --- a/Procfile.txt +++ b/Procfile.txt @@ -1,2 +1,2 @@ -release: cd api && flask db upgrade -web: cd api && flask run +release: ./upgrade.sh +web: ./run.sh diff --git a/migrate.sh b/migrate.sh new file mode 100755 index 0000000..0ede34b --- /dev/null +++ b/migrate.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd api +flask db upgrade diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..7821842 --- /dev/null +++ b/run.sh @@ -0,0 +1,3 @@ +#!/bin/sh +cd api +flask run -p $PORT