Commit b4456798 authored by Jérome Perrin's avatar Jérome Perrin

software/theia: execute theia start directly

Running theia with yarn start cause PATHs like this to be
added to $PATH

/srv/slapgrid/slappart15/tmp/yarn--1675226243379-0.20314216826775944/node
parent 6da9dca1
......@@ -81,7 +81,7 @@ output = ${buildout:bin-directory}/${:_buildout_section_name_}
inline =
#!/bin/sh
cd ${theia:location}
exec ${yarn:location}/bin/yarn theia start "$@"
exec ${nodejs:location}/bin/node ${theia:location}/node_modules/.bin/theia start "$@"
[theia-open]
recipe = slapos.recipe.template
......
......@@ -15,7 +15,7 @@
[instance-theia]
_update_hash_filename_ = instance-theia.cfg.jinja.in
md5sum = 1ce84f4dc3c1732051b841a7a3e24ae0
md5sum = 3648844f372a96974582e7281c9987dd
[instance]
_update_hash_filename_ = instance.cfg.in
......
......@@ -601,8 +601,6 @@ output = $${directory:bin}/$${:_buildout_section_name_}
inline =
#!/bin/sh
. $${common-environment:output}
#XXX find out where the extra nodejs in theia's PATH comes from
export PATH=${nodejs:location}/bin/:$PATH
. $${slapos-standalone-activate:output}
exec $${slapos-standalone-script:output}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment