test: working on deployments to fly
This commit is contained in:
parent
2d53428f56
commit
0344976747
|
|
@ -94,7 +94,7 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
devShells.default = pkgs.mkShell {
|
devShells.default = pkgs.mkShell {
|
||||||
buildInputs = with pkgs; [ go pigeon nodejs sqlite git-bug openssl flyctl ];
|
buildInputs = with pkgs; [ go pigeon nodejs sqlite git-bug openssl flyctl skopeo ];
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
# Shell Aliases don't work for direnv because they're not shell portable
|
# Shell Aliases don't work for direnv because they're not shell portable
|
||||||
|
|
|
||||||
23
fly.toml
Normal file
23
fly.toml
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
# fly.toml app configuration file generated for mast-react-vite-cold-snowflake-8783 on 2025-02-19T23:28:02-08:00
|
||||||
|
#
|
||||||
|
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
|
||||||
|
#
|
||||||
|
|
||||||
|
app = 'mast-react-vite'
|
||||||
|
primary_region = 'sea'
|
||||||
|
|
||||||
|
[build]
|
||||||
|
image = 'react-server:latest'
|
||||||
|
|
||||||
|
[http_service]
|
||||||
|
internal_port = 8080
|
||||||
|
force_https = true
|
||||||
|
auto_stop_machines = true
|
||||||
|
auto_start_machines = true
|
||||||
|
min_machines_running = 0
|
||||||
|
processes = ['app']
|
||||||
|
|
||||||
|
[[vm]]
|
||||||
|
memory = '1gb'
|
||||||
|
cpu_kind = 'shared'
|
||||||
|
cpus = 1
|
||||||
7
scripts/deploy.sh
Normal file
7
scripts/deploy.sh
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
PROJECT_NAME=mast-react-vite
|
||||||
|
nix build .#react-server
|
||||||
|
skopeo --insecure-policy --debug copy docker-archive:"./result" "docker://registry.fly.io/$PROJECT_NAME:latest" --dest-creds x:"$(flyctl auth token)" --format v2s2
|
||||||
|
flyctl deploy -i "registry.fly.io/$PROJECT_NAME:latest" --remote-only
|
||||||
|
|
||||||
Loading…
Reference in a new issue