Skip to content

Commit

Permalink
fix: update functions
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Nov 9, 2024
1 parent 06b181a commit 33b771c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
╚═════╝ ╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝
```

This repo is to set up the runner for updating the homepage at https://cslant.com/blog
This repo is to set up the runner for updating the blog at https://cslant.com/blog

We can use this runner to update the Blog automatically with CI/CD pipelines.

Expand Down
2 changes: 1 addition & 1 deletion runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ case "$1" in
all | a)
blog_sync all
# build_fe install
build_api install
build_admin install
# worker
;;

Expand Down
8 changes: 4 additions & 4 deletions setup/functions.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

build_fe() {
echo '⚙ Building home...'
echo '⚙ Building blog...'

BUILD_TYPE="$1"

Expand Down Expand Up @@ -83,8 +83,8 @@ node_runner() {

# ========================================

build_api() {
echo '⚙ Building home API (Laravel)...'
build_admin() {
echo '⚙ Building blog API (Laravel)...'

if [ "$1" == "install" ]; then
COMPOSER_COMMAND="install"
Expand All @@ -107,7 +107,7 @@ build_api() {
}

blog_resource_env() {
echo '🔧 Setting up home resource environment...'
echo '🔧 Setting up blog resource environment...'

cd "$BLOG_FE_DIR" || exit

Expand Down
2 changes: 1 addition & 1 deletion setup/git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ repo_sync_template() {
}

blog_fe_sync() {
repo_sync_template 'blog' 'blog-fe'
repo_sync_template 'blog-fe'
}

blog_admin_sync() {
Expand Down

0 comments on commit 33b771c

Please sign in to comment.