File tree 1 file changed +2
-15
lines changed
1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change 13
13
- name : Checkout
14
14
uses : actions/checkout@v4
15
15
16
- - name : Check prisma has changes
17
- uses : dorny/paths-filter@v3
18
- id : paths-filter
19
- with :
20
- filters : |
21
- prisma: ["prisma/**"]
22
-
23
16
- name : Configure SSH
24
17
run : |
25
18
mkdir -p ~/.ssh
46
39
47
40
- name : Install dependencies
48
41
run : |
49
- ssh playground-umc-7th 'cd /opt/app; npm install'
50
- ssh playground-umc-7th 'cd /opt/app; npm exec prisma generate'
51
-
52
- - name : Apply prisma migrations
53
- if : steps.paths-filter.outputs.prisma == 'true'
54
- run : |
55
- ssh playground-umc-7th 'cd /opt/app; npm exec prisma migrate deploy'
42
+ ssh playground-umc-7th 'npm install --prefix /opt/app/'
56
43
57
44
- name : Copy systemd service file
58
45
run : |
63
50
64
51
[Service]
65
52
User=${USER}
66
- ExecStart=/usr/bin/npm run start --prefix /opt/app/
53
+ ExecStart=/usr/bin/npm run dev --prefix /opt/app/
67
54
Restart=always
68
55
69
56
[Install]
You can’t perform that action at this time.
0 commit comments