Skip to content

Commit c60bca6

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

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed
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: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ 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
15-
config.externals = [nodeExternals()]
17+
// config.externals = [nodeExternals()]
1618

1719
// We are outputting a real node app!
1820
config.node = {
@@ -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)