diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e69de29..d566bba 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -0,0 +1,24 @@ +name: Update and rebuild on the server +on: + push: + branches: + - master +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup SSH Agent + uses: webfactory/ssh-agent@v0.5.2 + with: + ssh-private-key: ${{ secrets.HOST_SSH_KEY }} + - name: Deploy to webserver + run: | + ssh -o StrictHostKeyChecking=no ${{ secrets.HOST_USERNAME }}@${{ secrets.HOST_IP }} " + cd /home/website/crmn.to + git fetch && git reset --hard origin/master + npm install + npm run build + pm2 delete crmn.to + pm2 start ecosystem.config.cjs + " diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs index e406db3..a3f9fa2 100644 --- a/ecosystem.config.cjs +++ b/ecosystem.config.cjs @@ -1,7 +1,7 @@ module.exports = { apps: [ { - name: "NuxtAppName", + name: "crmn.to", port: "3000", exec_mode: "cluster", instances: "max", diff --git a/pages/about.vue b/pages/about.vue index 8a0302c..9457de8 100644 --- a/pages/about.vue +++ b/pages/about.vue @@ -111,7 +111,10 @@ themed around nuclear wasteland; -
Who knows what's next?
diff --git a/pages/index.vue b/pages/index.vue index 67e7a51..0306cc9 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,10 +1,22 @@Hello, world!