mirror of https://github.com/embarklabs/embark.git
conflict in en.json
This commit is contained in:
parent
e69b8bab56
commit
4bdf469131
|
@ -202,12 +202,14 @@ class Cmd {
|
|||
.option('--logfile [logfile]', __('filename to output logs (default: %s)', 'none'))
|
||||
.option('--loglevel [loglevel]', __('level of logging to display') + ' ["error", "warn", "info", "debug", "trace"]', /^(error|warn|info|debug|trace)$/i, 'debug')
|
||||
.option('--locale [locale]', __('language to use (default: en)'))
|
||||
.option('-c, --client [client]', __('Use a specific ethereum client or simulator (supported: %s)', 'geth, testrpc'))
|
||||
.description(__('Upload your dapp to a decentralized storage') + ' (e.g embark upload ipfs).')
|
||||
.action(function (env, _options) {
|
||||
i18n.setOrDetectLocale(_options.locale);
|
||||
_options.env = env || 'development';
|
||||
_options.logFile = _options.logfile; // fix casing
|
||||
_options.logLevel = _options.loglevel; // fix casing
|
||||
_options.client = _options.client || 'geth';
|
||||
embark.upload(_options);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -118,5 +118,11 @@
|
|||
"Type": "Type",
|
||||
"to see the list of available commands": "to see the list of available commands",
|
||||
"instantiated js-ipfs object configured to the current environment (available if ipfs is enabled)": "instantiated js-ipfs object configured to the current environment (available if ipfs is enabled)",
|
||||
"reset done!": "reset done!"
|
||||
"reset done!": "reset done!",
|
||||
"finished building": "finished building",
|
||||
"finished deploying": "finished deploying",
|
||||
"adding %s to ipfs": "adding %s to ipfs",
|
||||
"DApp available at": "DApp available at",
|
||||
"successfully uploaded to ipfs": "successfully uploaded to ipfs",
|
||||
"finished building DApp and deploying to": "finished building DApp and deploying to"
|
||||
}
|
||||
|
|
15
lib/index.js
15
lib/index.js
|
@ -305,6 +305,8 @@ class Embark {
|
|||
|
||||
let engine = new Engine({
|
||||
env: options.env,
|
||||
client: options.client,
|
||||
locale: options.locale,
|
||||
isDev: this.isDev(options.env),
|
||||
version: this.version,
|
||||
embarkConfig: 'embark.json',
|
||||
|
@ -385,12 +387,15 @@ class Embark {
|
|||
})
|
||||
.catch(callback);
|
||||
});
|
||||
// 1. build the contracts and dapp webpack
|
||||
engine.deployManager.deployContracts(function (err) {
|
||||
engine.logger.info(__("finished deploying").underline);
|
||||
if(err){
|
||||
|
||||
engine.onReady(() => {
|
||||
// 1. build the contracts and dapp webpack
|
||||
engine.deployManager.deployContracts(function (err) {
|
||||
engine.logger.info(__("finished deploying").underline);
|
||||
if(err){
|
||||
callback(err);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
], function (err, _result) {
|
||||
|
|
Loading…
Reference in New Issue