Skip to content

Commit

Permalink
Auto:
Browse files Browse the repository at this point in the history
- M  deploy.sh

- D  logs/deploy-20250102-162350.log

- D  logs/deploy-20250102-162426.log
  • Loading branch information
elimelt committed Jan 3, 2025
1 parent 27edcd0 commit 49b5843
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 71 deletions.
8 changes: 1 addition & 7 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,8 @@
# Set error handling
set -e

# Log file setup
LOG_DIR="$HOME/repos/notes/logs"
mkdir -p "$LOG_DIR"
LOG_FILE="$LOG_DIR/deploy-$(date +%Y%m%d-%H%M%S).log"

# Function to log messages
log_message() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" | tee -a "$LOG_FILE"
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1"
}

# Function to generate commit message based on git status
Expand Down
6 changes: 0 additions & 6 deletions logs/deploy-20250102-162350.log

This file was deleted.

7 changes: 0 additions & 7 deletions logs/deploy-20250102-162426.log

This file was deleted.

12 changes: 0 additions & 12 deletions logs/deploy-20250102-162516.log

This file was deleted.

4 changes: 0 additions & 4 deletions logs/deploy-20250102-162531.log

This file was deleted.

8 changes: 1 addition & 7 deletions site/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,8 @@
# Set error handling
set -e

# Log file setup
LOG_DIR="$HOME/repos/notes/logs"
mkdir -p "$LOG_DIR"
LOG_FILE="$LOG_DIR/deploy-$(date +%Y%m%d-%H%M%S).log"

# Function to log messages
log_message() {
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" | tee -a "$LOG_FILE"
echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1"
}

# Function to generate commit message based on git status
Expand Down
6 changes: 0 additions & 6 deletions site/logs/deploy-20250102-162350.log

This file was deleted.

7 changes: 0 additions & 7 deletions site/logs/deploy-20250102-162426.log

This file was deleted.

12 changes: 0 additions & 12 deletions site/logs/deploy-20250102-162516.log

This file was deleted.

3 changes: 0 additions & 3 deletions site/logs/deploy-20250102-162531.log

This file was deleted.

0 comments on commit 49b5843

Please sign in to comment.