Skip to content

Commit

Permalink
chore: improve debug start script (#422)
Browse files Browse the repository at this point in the history
Signed-off-by: BobDu <[email protected]>
  • Loading branch information
BobDu authored Feb 6, 2024
1 parent aa65cc5 commit 24dfe71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/common/GitHubSite/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
const gitCommitSha = (import.meta.env.VITE_GIT_COMMIT_HASH || '').slice(0, 7)
const releaseVersion = import.meta.env.VITE_RELEASE_VERSION
const gitCommitSha = (import.meta.env.VITE_GIT_COMMIT_HASH || 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx').slice(0, 7)
const releaseVersion = import.meta.env.VITE_RELEASE_VERSION || 'v0.0.0'
</script>

<template>
Expand Down
2 changes: 2 additions & 0 deletions start.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
export VITE_GIT_COMMIT_HASH=$(git rev-parse HEAD 2>/dev/null)
export VITE_RELEASE_VERSION=$(git describe --tags --exact-match 2>/dev/null)

cd ./service
nohup pnpm start > service.log &
Expand Down

0 comments on commit 24dfe71

Please sign in to comment.