Skip to content

Commit

Permalink
Update github repo package
Browse files Browse the repository at this point in the history
  • Loading branch information
underpostnet committed Oct 28, 2024
1 parent 31620cf commit fe320a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pwa-microservices-template.page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ jobs:
run: |
npm install
node bin/deploy update-default-conf
npm run build
npm run build '' underpostnet.github.io /pwa-microservices-template-ghpkg
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './public/default.net/'
path: './public/underpostnet.github.io/pwa-microservices-template-ghpkg/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
6 changes: 3 additions & 3 deletions bin/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,9 +232,9 @@ try {
const serverConf = deployId
? JSON.parse(fs.readFileSync(`./conf/conf.server.json`, 'utf8'))
: Config.default.server;
if (!deployId) {
argHost = 'default.net';
argPath = '/';
if (!deployId && !argHost[0] && !argPath[0]) {
argHost = ['default.net'];
argPath = ['/'];
}
for (const host of Object.keys(serverConf)) {
for (const path of Object.keys(serverConf[host])) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"pm2": "env-cmd -f .env.production pm2 start src/server.js --node-args=\"--max-old-space-size=8192\" --name engine && pm2 logs",
"ssl": "env-cmd -f .env.production node bin/ssl",
"pm2-delete": "pm2 delete engine",
"build": "node bin/deploy build-full-client --no-warnings",
"build": "node bin/deploy build-full-client",
"dev": "env-cmd -f .env.development node src/client.dev --no-warnings",
"dev-api": "env-cmd -f .env.development nodemon --watch src --ignore src/client src/api",
"docs": "jsdoc -c jsdoc.json",
Expand Down

0 comments on commit fe320a9

Please sign in to comment.