Improve Dodona shell to not leave lingering processes
This commit is contained in:
parent
03dbd42974
commit
d0839aa445
1 changed files with 22 additions and 3 deletions
|
@ -44,12 +44,18 @@
|
|||
help = "Run everything required for a server";
|
||||
command = ''
|
||||
memcached &
|
||||
trap "kill $!" 0
|
||||
mysql &
|
||||
trap "kill $!" 0
|
||||
bundle install
|
||||
yarn install
|
||||
rails jobs:work &
|
||||
trap "kill $!" 0
|
||||
yarn build:css --watch &
|
||||
yarn build:js --watch
|
||||
trap "kill $!" 0
|
||||
yarn build:js --watch &
|
||||
trap "kill $!" 0
|
||||
wait $!
|
||||
'';
|
||||
}
|
||||
{
|
||||
|
@ -57,8 +63,21 @@
|
|||
category = "general commands";
|
||||
help = "Run everything";
|
||||
command = ''
|
||||
server-support &
|
||||
rails s
|
||||
memcached &
|
||||
trap "kill $!" 0
|
||||
mysql &
|
||||
trap "kill $!" 0
|
||||
bundle install
|
||||
yarn install
|
||||
rails jobs:work &
|
||||
trap "kill $!" 0
|
||||
yarn build:css --watch &
|
||||
trap "kill $!" 0
|
||||
yarn build:js --watch &
|
||||
trap "kill $!" 0
|
||||
rails s &
|
||||
trap "kill $!" 0
|
||||
wait $!
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue