Merge pull request 'Update deploy.yml' (#28) from development into main
Some checks failed
Deploy / deploy (push) Failing after 23s
Some checks failed
Deploy / deploy (push) Failing after 23s
Reviewed-on: #28
This commit is contained in:
commit
8e771fdc7b
2 changed files with 3 additions and 5 deletions
|
@ -18,10 +18,6 @@ jobs:
|
|||
with:
|
||||
node-version: 19
|
||||
|
||||
env:
|
||||
SSH_PRIVATE_KEY: ${{secrets.SSH_KEY}}
|
||||
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
|
||||
|
||||
- name: Install PM2
|
||||
run: npm i -g pm2
|
||||
|
||||
|
@ -30,7 +26,6 @@ jobs:
|
|||
mkdir -p ~/.ssh
|
||||
echo "${{ secrets.SSH_KEY }}" >> ./deploy.key
|
||||
sudo chmod 600 ./deploy.key
|
||||
echo "${{ secrets.SSH_KNOWN_HOSTS}}" > ~/.ssh/known_hosts
|
||||
|
||||
- name: Deploy
|
||||
run: pm2 deploy ecosystem.config.cjs production
|
||||
|
|
|
@ -6,4 +6,7 @@ export default defineConfig({
|
|||
define: {
|
||||
APP_VERSION: JSON.stringify(process.env.npm_package_version),
|
||||
},
|
||||
build: {
|
||||
minify: true,
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue