Disable build on service start

This commit is contained in:
Sky Young 2018-05-18 15:08:29 -07:00
parent 135f9dd617
commit f098c4d35d
5 changed files with 17 additions and 15 deletions

View File

@ -22,15 +22,17 @@ FlosightUI.prototype.start = function(callback) {
pkg.flosightConfig.apiPrefix = self.apiPrefix;
pkg.flosightConfig.routePrefix = self.routePrefix;
fs.writeFileSync(__dirname + '/../package.json', JSON.stringify(pkg, null, 2));
exec('cd ' + __dirname + '/../;' +
' npm run install-and-build', function(err) {
if (err) {
return callback(err);
}
self.indexFile = self.filterIndexHTML(fs.readFileSync(__dirname + '/../public/index-template.html', {encoding: 'utf8'}));
callback();
});
// fs.writeFileSync(__dirname + '/../package.json', JSON.stringify(pkg, null, 2));
// exec('cd ' + __dirname + '/../;' +
// ' npm run install-and-build', function(err) {
// if (err) {
// return callback(err);
// }
// self.indexFile = self.filterIndexHTML(fs.readFileSync(__dirname + '/../public/index-template.html', {encoding: 'utf8'}));
// callback();
// });
self.indexFile = self.filterIndexHTML(fs.readFileSync(__dirname + '/../public/index-template.html', {encoding: 'utf8'}));
callback();
};

View File

@ -1,7 +1,7 @@
{
"name": "flosight-ui",
"description": "An open-source frontend for the Flosight API. The Flosight API provides you with a convenient, powerful and simple way to query and broadcast data on the florincoin network and build your own services with it.",
"version": "5.0.0-beta.48",
"version": "5.0.0-beta.50",
"repository": "git://github.com/bitpay/flosight-ui.git",
"bugs": {
"url": "https://github.com/bitpay/flosight-ui/issues"
@ -18,7 +18,7 @@
],
"flocoreNode": "flocore-node",
"flosightConfig": {
"apiPrefix": "flosight-api",
"apiPrefix": "api",
"routePrefix": ""
},
"scripts": {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long