Skip to content

Commit 0c613fb

Browse files
committed
remove proc
1 parent f7c9bf0 commit 0c613fb

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ WORKDIR /app
44
COPY go.* ./
55
RUN go mod download
66

7-
ENV GOBLIN_ORIGIN_URL=""
8-
ENV ORIGIN_URL=""
7+
ENV GOBLIN_ORIGIN_URL="http://goblin.run"
8+
ENV ORIGIN_URL="http://goblin.run"
99

1010
COPY . ./
1111
RUN cd www \

Procfile

Lines changed: 0 additions & 2 deletions
This file was deleted.

scripts/deploy.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/usr/bin/env bash
2+
3+
docker build . --platform=linux/amd64 -t goblin:latest
4+
docker save goblin:latest | gzip > goblin-latest.tar.gz
5+
6+
PREPARE_COMMANDS="""
7+
set -euxo pipefail
8+
mkdir -p ~/goblin
9+
"""
10+
11+
ssh [email protected] "/bin/bash -c '$PREPARE_COMMANDS'"
12+
13+
rsync --progress goblin-latest.tar.gz [email protected]:~/goblin/
14+
15+
COMMANDS="""
16+
set -euxo pipefail
17+
cd ~/goblin
18+
docker image load < goblin-latest.tar.gz
19+
docker stop \$(docker container ls --all --filter=ancestor="goblin:latest" --format "{{.ID}}")
20+
docker run -d -e 'ORIGIN_URL=http://count.barelyhuman.dev' -p '3000:3000' -v='./:/usr/bin/app' goblin:latest
21+
"""
22+
23+
ssh [email protected] "/bin/bash -c '$COMMANDS'"

0 commit comments

Comments
 (0)