Skip to content

Commit 5282b96

Browse files
author
Tim Schwab
committed
install on mac
1 parent 921d008 commit 5282b96

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Diff for: scripts/install-redis-mac.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
brew install redis
4+
brew services start redis

Diff for: scripts/post-install.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,16 @@ const {exec} = require('child_process')
33

44
switch (process.platform) {
55
case 'win32':
6+
// Windows
67
// TODO: Move the logic for installing on windows here from the bat file
78
exec('call scripts/install-redis-windows.bat')
89
break
910
case 'darwin':
10-
console.log(
11-
'Automated install of Redis currently not implemented on Mac OS'
12-
)
11+
// Mac
12+
exec('sh scripts/install-redis-mac.sh')
1313
break
1414
case 'linux':
15-
// https://redis.io/topics/quickstart
16-
// This is the way to install on Linux, apparently...
17-
15+
// ... Linux
1816
exec('sh scripts/install-redis-linux.sh')
1917
break
2018
}

0 commit comments

Comments
 (0)