Porównaj commity

...

3 Commity

Autor SHA1 Wiadomość Data
Sashanoraa 76bc8fc18f
Update hash in nix package for new yarn.lock 2023-12-22 11:09:17 -05:00
Sashanoraa 4719c65a4d
Update deps in yarn.lock to support newer nodejs versions 2023-12-22 11:08:32 -05:00
Edward Loveall bb2519bdab
Add command to build_static
Uploading the object file and linking it on the server wasn't working. So I'm now using a statically linked binary.

I followed the instructions here: https://crystal-lang.org/reference/1.10/guides/static_linking.html#linux
2023-12-22 10:56:35 -05:00
3 zmienionych plików z 858 dodań i 1359 usunięć

Wyświetl plik

@ -14,7 +14,7 @@ let
offlineCache = fetchYarnDeps {
yarnLock = ./yarn.lock;
sha256 = "sha256-PuxfuqgqJHh6NnyrQiFCxixGry9yGBSeSIPpa4jamKw=";
sha256 = "sha256-ixnGRTTKq20tnjOnHeibu12a+n3edV1eM5Om2iNO9fo=";
};
configurePhase = ''

Wyświetl plik

@ -0,0 +1,20 @@
#!/usr/bin/env bash
# Exit if any subcommand fails
set -e
set -o pipefail
todays_date=$(date "+%Y-%m-%d")
if ! git show HEAD:src/version.cr | rg -q $todays_date; then
echo "Date in committed src/version.cr is not today's date ($todays_date)"
echo "Make sure that the file is both up to date and commited to git."
echo
echo "## src/version.cr"
git show HEAD:src/version.cr
# exit 1
fi
# Via: https://crystal-lang.org/reference/1.10/guides/static_linking.html#linux
~/.docker/bin/docker run --rm -it -v $(pwd):/workspace -w /workspace crystallang/crystal:latest-alpine \
crystal build src/start_server.cr -o ubuntu_server --static --release

2195
yarn.lock

Plik diff jest za duży Load Diff