Pass vocab roots onto deployed app. Fixes deployment of apps outside the built-in roots. Reported by Alec Berryman
parent
87e4598581
commit
ba61b82152
|
@ -60,7 +60,6 @@ SYMBOL: main-vocab-hook
|
|||
: default-cli-args ( -- )
|
||||
global [
|
||||
"quiet" off
|
||||
"script" off
|
||||
"e" off
|
||||
"user-init" on
|
||||
embedded? "quiet" set
|
||||
|
|
|
@ -8,7 +8,7 @@ debugger io.streams.c io.files io.files.temp io.pathnames
|
|||
io.directories io.directories.hierarchy io.backend quotations
|
||||
io.launcher words.private tools.deploy.config
|
||||
tools.deploy.config.editor bootstrap.image io.encodings.utf8
|
||||
destructors accessors ;
|
||||
destructors accessors hashtables ;
|
||||
IN: tools.deploy.backend
|
||||
|
||||
: copy-vm ( executable bundle-name -- vm )
|
||||
|
@ -88,7 +88,7 @@ DEFER: ?make-staging-image
|
|||
[ drop ] [ make-staging-image ] if ;
|
||||
|
||||
: make-deploy-config ( vocab -- file )
|
||||
[ deploy-config unparse-use ]
|
||||
[ deploy-config vocab-roots get vocab-roots associate assoc-union unparse-use ]
|
||||
[ "deploy-config-" prepend temp-file ] bi
|
||||
[ utf8 set-file-contents ] keep ;
|
||||
|
||||
|
|
Loading…
Reference in New Issue