File tree Expand file tree Collapse file tree 9 files changed +1316
-55
lines changed Expand file tree Collapse file tree 9 files changed +1316
-55
lines changed Original file line number Diff line number Diff line change 11FROM nixos/nix
22
3- COPY ./src /ihp
4- WORKDIR /ihp
5-
63# Add build dependencies
7- RUN nix-env -i cachix
4+ RUN nix-env -f https://github.com/NixOS/nixpkgs/archive/54b4bb956f9891b872904abdb632cea85a033ff2.tar.gz -iA cachix
85RUN cachix use digitallyinduced
96
7+ COPY ./src /ihp
8+ WORKDIR /ihp
9+
1010# Build
11- RUN nix- build -j auto --cores 0
11+ RUN nix --extra-experimental-features "nix-command flakes" build -j auto --cores 0 .#optimized-prod-server
1212
1313# Setup
1414ENV DATABASE_URL=postgres://benchmarkdbuser:benchmarkdbpass@tfb-database:5432/hello_world
Original file line number Diff line number Diff line change 1+ if ! has nix_direnv_version || ! nix_direnv_version 2.3.0; then
2+ source_url " https://raw.githubusercontent.com/nix-community/nix-direnv/2.3.0/direnvrc" " sha256-Dmd+j63L84wuzgyjITIfSxSD57Tx7v51DMxVZOsiUD8="
3+ fi
4+
5+ use flake . --impure --accept-flake-config
6+
7+ # Include .env file if it exists locally. Use the .env file to load env vars that you don't want to commit to git
8+ if [ -f .env ]
9+ then
10+ set -o allexport
11+ source .env
12+ set +o allexport
13+ fi
14+ # Add your env vars here
15+ #
16+ # E.g. export AWS_ACCESS_KEY_ID="XXXXX"
Original file line number Diff line number Diff line change 1- import Prelude
2- :def source readFile
3- :source build/ihp-lib/applicationGhciConfig
1+ :set -XNoImplicitPrelude
2+ :def loadFromIHP \file -> (System.Environment.getEnv "IHP_LIB") >>= (\ihpLib -> readFile (ihpLib <> "/" <> file))
3+ :loadFromIHP applicationGhciConfig
4+ import IHP.Prelude
Original file line number Diff line number Diff line change 11.DS_Store
2- .envrc
32.idea
43tmp
54result
1716del
1817static /prod. *
1918Config /client_session_key.aes
19+
20+ .devenv *
21+ devenv.local.nix
22+ .direnv
23+ .env
Original file line number Diff line number Diff line change 1- ifneq ($(wildcard IHP/.* ) ,)
2- IHP = IHP/lib/IHP
3- else
4- IHP = $(shell dirname $$(which RunDevServer ) ) /../lib/IHP
5- endif
6-
7- include ${IHP}/Makefile.dist
8-
91CSS_FILES += ${IHP}/static/vendor/bootstrap.min.css
102CSS_FILES += ${IHP}/static/vendor/flatpickr.min.css
113
@@ -19,3 +11,5 @@ JS_FILES += ${IHP}/static/vendor/morphdom-umd.min.js
1911JS_FILES += ${IHP}/static/vendor/turbolinks.js
2012JS_FILES += ${IHP}/static/vendor/turbolinksInstantClick.js
2113JS_FILES += ${IHP}/static/vendor/turbolinksMorphdom.js
14+
15+ include ${IHP}/Makefile.dist
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments