Skip to content

Commit 26f6e36

Browse files
committed
🐛 Fix bug where pup failed to locate deno since not in PATH
1 parent 6da85af commit 26f6e36

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/deploy_to_ec2_on_push.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,16 @@ jobs:
5454
# Excludes all node_modules subdirectories etc. Do not include git things on server.
5555
EXCLUDE: "*/node_modules/, */_fresh/, .git/, .run/, .github/"
5656
SCRIPT_AFTER: |
57+
export PATH="/home/${{ secrets.REMOTE_USER }}/.deno/bin:$PATH"
5758
echo "Starting Deno build and deployment for home_server"
5859
cd ~/pegasib.dev/home_server
59-
~/.deno/bin/deno task build
60+
deno task build
6061
echo "Starting Deno build and deployment for heardle_server"
6162
cd ../heardle_server
62-
~/.deno/bin/deno task build
63-
cd ..
64-
~/.deno/bin/pup restart home_server
65-
~/.deno/bin/pup restart heardle_server
63+
deno task build
64+
cd ~/pegasib.dev
65+
pup restart home_server
66+
pup restart heardle_server
6667
SCRIPT_AFTER_REQUIRED: true
6768
- name: revoke runner ip address (via aws CLI)
6869
run: |

nginx_config/pegasib.dev.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ server {
77

88
location / {
99
proxy_pass http://localhost:8000; # Forward requests to Deno server on localhost port 8000
10-
include includes/proxy-headers;
10+
include includes/proxy-headers.conf;
1111
}
1212
}
1313

0 commit comments

Comments
 (0)