Skip to content

Commit 20ada10

Browse files
authored
Move non-main files into util/ (#238)
1 parent 0e0c103 commit 20ada10

File tree

10 files changed

+6
-3
lines changed

10 files changed

+6
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ jobs:
123123
tags: ${{ steps.meta.outputs.tags }}
124124
labels: ${{ steps.meta.outputs.labels }}
125125
target: main
126+
file: util/Dockerfile
126127
deploy:
127128
runs-on: ubuntu-latest
128129
if: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ python3 scrapscript.py repl
2525
or with [Cosmopolitan](https://justine.lol/cosmopolitan/index.html):
2626

2727
```bash
28-
./build-com
28+
./util/build-com
2929

3030
# With a file
3131
./scrapscript.com eval examples/0_home/factorial.scrap

fly.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ primary_region = "ewr"
88

99
[build]
1010
build-target = "web"
11+
dockerfile = "util/Dockerfile"
1112

1213
[http_service]
1314
internal_port = 8000

Dockerfile renamed to util/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
FROM caddy as web
22
COPY . .
33
RUN echo ":8000" > /etc/caddy/Caddyfile
4-
RUN echo "rewrite /repl /repl.html" >> /etc/caddy/Caddyfile
5-
RUN echo "rewrite /compilerepl /compilerepl.html" >> /etc/caddy/Caddyfile
4+
RUN echo "rewrite /repl /util/repl.html" >> /etc/caddy/Caddyfile
5+
RUN echo "rewrite /compilerepl /util/compilerepl.html" >> /etc/caddy/Caddyfile
6+
RUN echo "rewrite /style.css /util/style.css" >> /etc/caddy/Caddyfile
67
RUN echo "log" >> /etc/caddy/Caddyfile
78
RUN echo "file_server" >> /etc/caddy/Caddyfile
89

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)