-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 (workflows/get-build-stable-artifacts-with-memogram-and-push-image…
….yml): update workflow to use new script names 🔧 (Dockerfile): update Dockerfile to use new script names 🔧 (Dockerfile.memogram): update Dockerfile.memogram to use new script names 🔧 (etc/Procfile): update Procfile to use new script names 🚀 (scripts/run-memogram.sh): add new script to run memogram service 🔧 (scripts/run-memos-with-litestream.sh): rename script and remove memogram related code
- Loading branch information
Showing
6 changed files
with
30 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
memos: ./run.sh | ||
memogram: sleep 5 && ./memogram | ||
memos: ./run-memos-with-litestream.sh | ||
memogram: sleep 5 && ./run-memogram.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# Replace MEMOGRAM_BOT_TOKEN in .env | ||
if [ -f "./memogram" ] && [ -f "./.env" ] && [ -n "$MEMOGRAM_BOT_TOKEN" ]; then | ||
# Replace MEMOGRAM_BOT_TOKEN in .env | ||
sed -i 's/<MEMOGRAM_BOT_TOKEN>/'"$MEMOGRAM_BOT_TOKEN"'/g' ./.env | ||
|
||
# Replace MEMOS_PORT in .env | ||
if [ "$MEMOS_PORT" != "5230" ]; then | ||
sed -i 's/5230/'"$MEMOS_PORT"'/g' ./.env | ||
fi | ||
|
||
# Run memogram | ||
echo "Starting memogram service." | ||
exec ./memogram | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters