Skip to content

Commit

Permalink
fix webpack loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sqfasd committed Oct 21, 2016
1 parent ed3266f commit cf596b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ node app.js --help
-x, --peers [peers...] Peers list
-l, --log <level> Log level
-d, --daemon Run asch node as daemon
-e, --execute <script> Execute a script with all initialized modules
--reindex Reindex blockchain
--base <dir> Base directory
```
Expand Down
14 changes: 7 additions & 7 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ function main() {
.option('-x, --peers [peers...]', 'Peers list')
.option('-l, --log <level>', 'Log level')
.option('-d, --daemon', 'Run asch node as daemon')
.option('-e, --execute <script>', 'Execute a script with all initialized modules')
.option('--reindex', 'Reindex blockchain')
.option('--base <dir>', 'Base directory')
.parse(process.argv);
Expand Down Expand Up @@ -171,18 +170,19 @@ function main() {
verifyGenesisBlock(scope, scope.genesisblock.block);

if (program.execute) {
require(path.resolve(program.execute))(scope);
// only for debug use
// require(path.resolve(program.execute))(scope);
}

scope.bus.message("bind", scope.modules);
scope.bus.message('bind', scope.modules);

scope.logger.info("Modules ready and launched");
scope.logger.info('Modules ready and launched');
if (!scope.config.publicIp) {
scope.logger.warn("Failed to get public ip, block forging MAY not work!");
scope.logger.warn('Failed to get public ip, block forging MAY not work!');
}

process.once('cleanup', function () {
scope.logger.info("Cleaning up...");
scope.logger.info('Cleaning up...');
async.eachSeries(scope.modules, function (module, cb) {
if (typeof (module.cleanup) == 'function') {
module.cleanup(cb);
Expand All @@ -193,7 +193,7 @@ function main() {
if (err) {
scope.logger.error('Error while cleaning up', err);
} else {
scope.logger.info("Cleaned up successfully");
scope.logger.info('Cleaned up successfully');
}
if (fs.existsSync(pidFile)) {
fs.unlinkSync(pidFile);
Expand Down

0 comments on commit cf596b8

Please sign in to comment.