Skip to content

Commit f049975

Browse files
committed
Deploy ve ecosystem dosyaları ayarlandı
1 parent b1414f6 commit f049975

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Deploy Application
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build-and-deploy:
10+
runs-on: ["self-hosted"]
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v3
15+
16+
- name: Install dependencies
17+
run: pnpm i
18+
19+
- name: Build application
20+
run: pnpm run build
21+
22+
- name: Start application
23+
run: pm2 restart yunusescom

ecosystem.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
apps: [
3+
{
4+
name: "yunusescom",
5+
script: "pnpm",
6+
args: "run start",
7+
env: {
8+
NODE_ENV: "production",
9+
PORT: 3000,
10+
},
11+
},
12+
],
13+
};

0 commit comments

Comments
 (0)