Skip to content

Commit

Permalink
Fixed not including fs and added target dir
Browse files Browse the repository at this point in the history
  • Loading branch information
notvalproate committed Oct 22, 2024
1 parent ef79910 commit 58555ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/github-actions-ec2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
SSH_PRIVATE_KEY: ${{ secrets.AWS_KEY }}
REMOTE_HOST: ${{ secrets.AWS_HOST }}
REMOTE_USER: ${{ secrets.AWS_USERNAME }}
TARGET: ${{ secrets.TARGET_DIR }}

- name: Executing remote ssh commands using ssh key
uses: appleboy/ssh-action@master
Expand Down
2 changes: 2 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ console.log(MODE)
if (MODE === "development") {
socket_server = require("http").Server(app);
} else {
const fs = require('fs');

socket_server = require('https').createServer(
{
key: fs.readFileSync('./ssl/key.pem'),
Expand Down

0 comments on commit 58555ed

Please sign in to comment.