-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
465 additions
and
6,235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fly.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Deno | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
name: Deno | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Setup Deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
- run: deno --version | ||
- run: | | ||
deno lint |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
node_modules | ||
.vercel | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Based on https://github.com/denoland/deno_docker/blob/main/alpine.dockerfile | ||
|
||
ARG DENO_VERSION=1.14.0 | ||
ARG BIN_IMAGE=denoland/deno:bin-${DENO_VERSION} | ||
FROM ${BIN_IMAGE} AS bin | ||
|
||
FROM frolvlad/alpine-glibc:alpine-3.13 | ||
|
||
RUN apk --no-cache add ca-certificates | ||
|
||
RUN addgroup --gid 1000 deno \ | ||
&& adduser --uid 1000 --disabled-password deno --ingroup deno \ | ||
&& mkdir /deno-dir/ \ | ||
&& chown deno:deno /deno-dir/ | ||
|
||
ENV DENO_DIR /deno-dir/ | ||
ENV DENO_INSTALL_ROOT /usr/local | ||
|
||
ARG DENO_VERSION | ||
ENV DENO_VERSION=${DENO_VERSION} | ||
COPY --from=bin /deno /bin/deno | ||
|
||
WORKDIR /deno-dir | ||
COPY . . | ||
|
||
ENTRYPOINT ["/bin/deno"] | ||
CMD ["run", "--allow-net", "https://deno.land/std/examples/echo_server.ts"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"tasks": { | ||
"update-lockfile": "deno cache --lock-write source/app.js source/colors.js source/icon.js source/utils.js", | ||
"dev": "deno run --allow-net --watch source/app.js" | ||
}, | ||
"imports": { | ||
"@oak/oak": "jsr:@oak/oak@^16.0.0" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# fly.toml app configuration file generated for simple-icons-cdn on 2024-05-19T12:17:55+08:00 | ||
# | ||
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. | ||
# | ||
|
||
app = 'simple-icons-cdn' | ||
primary_region = 'hkg' | ||
|
||
[build] | ||
|
||
[env] | ||
PORT = '8080' | ||
|
||
[processes] | ||
app = 'run --allow-net ./source/app.js' | ||
|
||
[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 |
Oops, something went wrong.