-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3001 from bisubus/dump-backup
Dump backup
- Loading branch information
Showing
7 changed files
with
208 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
SRC=$(cd $(dirname "$0"); pwd) | ||
source "${SRC}/include.sh" | ||
cd $file_path | ||
|
||
$pm2 start echo.js -i 4 | ||
spec "should start 4 processes" | ||
should 'should have 4 apps started' 'online' 4 | ||
|
||
rm -f ~/.pm2/dump.pm2 ~/.pm2/dump.pm2.bak | ||
$pm2 save | ||
spec "should save process list" | ||
ls ~/.pm2/dump.pm2 | ||
spec "dump file should exist" | ||
ls ~/.pm2/dump.pm2.bak | ||
ispec "dump backup file should not exist" | ||
|
||
$pm2 save | ||
spec "should save and backup process list" | ||
ls ~/.pm2/dump.pm2 | ||
spec "dump file should exist" | ||
ls ~/.pm2/dump.pm2.bak | ||
spec "dump backup file should exist" |
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