Fix up node autodeployment

This commit is contained in:
Dane Everitt 2020-04-12 17:20:09 -07:00
parent fc31d6347e
commit fda88940f7
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 119 additions and 20 deletions

View file

@ -71,8 +71,7 @@
swal({
type: 'success',
title: 'Token created.',
text: 'Your token will expire <strong>in 5 minutes.</strong><br /><br />' +
'<p>To auto-configure your node run the following command:<br /><small><pre>npm run configure -- --panel-url {{ config('app.url') }} --token ' + data.token + '</pre></small></p>',
text: '<p>To auto-configure your node run the following command:<br /><small><pre>cd /srv/wings && ./wings configure --panel-url {{ config('app.url') }} --token ' + data.token + ' --node ' + data.node + '{{ config('app.debug') ? ' --allow-insecure' : '' }}</pre></small></p>',
html: true
})
}).fail(function () {