Skip to content

Commit d7ed715

Browse files
authored
Merge pull request #179 from AndrewCS149/testWorkflow
testWorkflow
2 parents 9f4918a + 481355b commit d7ed715

File tree

3 files changed

+32
-5
lines changed

3 files changed

+32
-5
lines changed

.github/workflows/staging.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ jobs:
3434
run: cargo install trunk
3535
# if: steps.cache.outputs.cache-hit != 'true'
3636

37-
# - name: Build with Trunk
38-
# run: trunk build --release
39-
# working-directory: client
37+
- name: Build with Trunk
38+
run: trunk build --release
39+
working-directory: client
4040

4141
- name: Create SSH Key
4242
run: |
@@ -49,7 +49,9 @@ jobs:
4949
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ${{ secrets.SSH_PRIVATE_KEY_PATH }}/known_hosts
5050

5151
- name: Copy Files to Server
52-
run: scp -i ${{ secrets.SSH_PRIVATE_KEY_PATH }}/${{ secrets.SSH_PRIVATE_KEY_NAME }} -r client/dist ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ vars.DEVBLOG_ROOT_PATH }}/client
52+
run: |
53+
scp -i ${{ secrets.SSH_PRIVATE_KEY_PATH }}/${{ secrets.SSH_PRIVATE_KEY_NAME }} -r client/dist ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ vars.DEVBLOG_ROOT_PATH }}/client
54+
scp -i ${{ secrets.SSH_PRIVATE_KEY_PATH }}/${{ secrets.SSH_PRIVATE_KEY_NAME }} docker-compose.yaml ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ vars.DEVBLOG_ROOT_PATH }}
5355
5456
- name: Restart Container
5557
run: |

client/src/pages/home.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pub fn home() -> Html {
152152
if !*loading {
153153
<Post post={(*latest_post).clone()} post_number={*total_posts_count} on_post_delete={&on_post_delete}/>
154154
} else {
155-
<h1>{"Loading......................."}</h1>
155+
<h1>{"Loading..."}</h1>
156156
}
157157

158158
// youtube video

docker-compose.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
services:
2+
proxy:
3+
image: proxy
4+
build: ./proxy
5+
container_name: proxy
6+
depends_on:
7+
- devblog_staging_client
8+
volumes:
9+
- /home/devmaster/app/proxy/default.conf:/etc/nginx/conf.d/default.conf
10+
- /etc/ssl/certs/andrewtest.org:/etc/ssl/certs/andrewtest.org
11+
restart: on-failure
12+
ports:
13+
- 443:443
14+
15+
devblog_staging_client:
16+
image: andrewtest.org_client
17+
build: ./client
18+
container_name: andrewtest.org_client
19+
restart: on-failure
20+
volumes:
21+
- ./client/dist:/app
22+
- ./client/nginx.conf:/etc/nginx/nginx.conf
23+
- /etc/ssl/certs/andrewtest.org:/etc/ssl/certs/andrewtest.org
24+
ports:
25+
- 8082:443

0 commit comments

Comments
 (0)