File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,8 @@ export function setup(api) {
33
33
} ) ;
34
34
35
35
log ( 'exec => mup setup' ) ;
36
- const config = api . getConfig ( ) ;
37
36
38
- return api . runCommand ( 'docker.setup' )
39
- . then ( ( ) => {
40
- if ( config . proxy ) {
41
- return api . runCommand ( 'proxy.setup' ) ;
42
- }
43
- } ) ;
37
+ return api . runCommand ( 'docker.setup' ) ;
44
38
}
45
39
46
40
export function start ( ) {
Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ export const hooks = {
34
34
if ( api . getConfig ( ) . proxy ) {
35
35
api . runCommand ( 'proxy.status' ) ;
36
36
}
37
+ } ,
38
+ 'post.meteor.setup' ( api ) {
39
+ // Only run hook on "mup setup"
40
+ const dockerSetup = api . commandHistory . find ( ( { name } ) => name === 'default.setup' ) ;
41
+
42
+ if ( api . getConfig ( ) . proxy && dockerSetup ) {
43
+ return api . runCommand ( 'proxy.setup' ) ;
44
+ }
37
45
}
38
46
} ;
39
47
You can’t perform that action at this time.
0 commit comments