Skip to content

Commit 5af578a

Browse files
[CI] fix wrong locations workflow files
1 parent 0eeed7f commit 5af578a

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed
File renamed without changes.

.github/deploy_backend.yml renamed to .github/workflows/deploy_backend.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Publish
2121
uses: nogsantos/scp-deploy@master
2222
with:
23-
src: ./backend/*
23+
src: ./backend/build/*
2424
host: ${{ secrets.SSH_HOST }}
2525
remote: ${{ secrets.SSH_BE_DIR }}
2626
port: ${{ secrets.SSH_PORT }}

backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"build": "webpack && cp -R ./src/public ./build/public && cd ./build",
7+
"build": "webpack && cd ./build",
88
"dev": "webpack && cp -R ./src/public ./build/public && cd ./build && node bundle.js",
99
"test": "echo \"Error: no test specified\" && exit 1"
1010
},

backend/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ config.entry = "./src/main.js"
1111
// We build for node
1212
config.target = "node"
1313

14+
config.mode = "production"
15+
1416
// Node module dependencies should not be bundled
1517
config.externals = [nodeExternals()]
1618

@@ -44,7 +46,6 @@ config.module.rules = [
4446
// Use babel and eslint to build and validate JavaScript
4547
{
4648
test: /\.js$/,
47-
exclude: /node_modules/,
4849
include: [
4950
path.resolve(__dirname, "src")
5051
],

0 commit comments

Comments
 (0)