Skip to content

Commit

Permalink
fix(@embark/storage): Allow upload when storage is disabled
Browse files Browse the repository at this point in the history
Even when the storage config sets storage to disabled, upload should still be allowed, as uploaded dapps should have the ability to NOT use storage once uploaded.
  • Loading branch information
emizzle authored and 0x-r4bbit committed Apr 10, 2020
1 parent ae56575 commit ec99cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/embark/src/cmd/cmd_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ class EmbarkController {
async.waterfall([
function initEngine(callback) {
engine.init({}, () => {
if (engine.config.embarkConfig.config.storage === false || engine.config.storageConfig.enabled === false) {
if (engine.config.embarkConfig.config.storage === false) {
engine.logger.error(__('Storage configuration is disabled in embark.json. Please provide a storage file before uploading'));
engine.logger.info(__('You can find an example here: %s', 'https://github.com/embarklabs/embark/blob/master/templates/demo/config/storage.js'.underline));
process.exit(1);
Expand Down

0 comments on commit ec99cf6

Please sign in to comment.