Disable build on service start
This commit is contained in:
parent
135f9dd617
commit
f098c4d35d
@ -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();
|
||||
|
||||
};
|
||||
|
||||
|
||||
@ -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": {
|
||||
|
||||
2
public/js/angularjs-all.min.js
vendored
2
public/js/angularjs-all.min.js
vendored
File diff suppressed because one or more lines are too long
4
public/js/main.min.js
vendored
4
public/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
2
public/js/vendors.min.js
vendored
2
public/js/vendors.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user