Skip to content

Commit dac0356

Browse files
committed
Put more stuff into bash scripts
1 parent c1a0afb commit dac0356

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

mise.toml

-14
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,6 @@ run = ["ghcup install ghc 9.6.6 --set -f ",
1010
"cabal update"
1111
]
1212

13-
[tasks.install-migration-tool]
14-
description = "Install postgresql-migration"
15-
run = "cabal install postgresql-migration-0.2.1.8"
16-
17-
[tasks.db-migrate]
18-
description = "Schema migrations"
19-
depends = ['install-migration-tool']
20-
run = "make db-init && make db-migrate && make db-provision"
21-
22-
[tasks.start-release]
23-
description = "Start flora-server"
24-
depends = ['db-migrate']
25-
run = "make start-release"
26-
2713
[tasks.install-js-deps]
2814
description = "Install JS dependencies"
2915
run = "yarn install --immutable --immutable-cache --check-cache"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "flora-dev",
33
"scripts": {
4-
"start": "mise run start-release",
4+
"start": "./start-clever-cloud.sh",
55
"install": "./build-clever-cloud.sh"
66
},
77
"engines": {

start-clever-cloud.sh

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
5+
export PATH="${HOME}/.ghcup/bin:${PATH}"
6+
7+
cabal install postgresql-migration-0.2.1.8
8+
make db-init
9+
make db-migrate
10+
make db-provision
11+
make start-release

0 commit comments

Comments
 (0)