This repository has been archived by the owner on Oct 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move everything away from app dir since it is readonly
- Loading branch information
Showing
4 changed files
with
15 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
# Replaces paths in redis config with the current and starts redis server. | ||
# Not the best solution but it works. | ||
rm -f config/redis.tmp.conf | ||
RS_PATH="$PWD/server/modules" | ||
sed -e "s|MY_HOME|$HOME|g; s|RS_PATH|$RS_PATH|g" config/redis.conf >> config/redis.tmp.conf | ||
./server/redis-server config/redis.tmp.conf | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
echo "Server dir: $DIR" | ||
rm -f $HOME/.reventlou/db/redis.tmp.conf | ||
RS_PATH="$DIR/modules" | ||
#mkdir -p $HOME/.reventlou/db | ||
sed -e "s|MY_HOME|$HOME|g; s|RS_PATH|$RS_PATH|g" $HOME/.reventlou/db/redis.conf >> $HOME/.reventlou/db/redis.tmp.conf | ||
$DIR/redis-server $HOME/.reventlou/db/redis.tmp.conf | ||
|
||
|
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