mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-01-26 06:59:06 +00:00
Add ‘defaultpath’ for upload
Hardcode to ‘index.html’
This commit is contained in:
parent
9d39fa39ac
commit
b759e9eed7
@ -16,14 +16,14 @@ class Swarm {
|
||||
async.waterfall([
|
||||
function runCommand(callback) {
|
||||
console.log(("=== " + __("adding %s to swarm", self.buildDir)).green);
|
||||
swarm.uploadDirectory(self.buildDir, callback);
|
||||
swarm.uploadDirectory(self.buildDir, 'index.html', callback);
|
||||
},
|
||||
function printUrls(dir_hash, callback) {
|
||||
if (!dir_hash) {
|
||||
return callback('No directory hash was returned');
|
||||
}
|
||||
console.log(("=== " + __("DApp available at") + ` ${self.providerUrl}/bzz:/${dir_hash}/`).green);
|
||||
console.log(("=== " + __("DApp available at") + ` https://swarm-gateways.net/bzz:/${dir_hash}`).green);
|
||||
console.log(("=== " + __("DApp available at") + ` ${self.providerUrl}/bzz:/${dir_hash}/index.html`).green);
|
||||
console.log(("=== " + __("DApp available at") + ` https://swarm-gateways.net/bzz:/${dir_hash}/index.html`).green);
|
||||
console.log(("=== " + __("NOTE: A blockchain node must be running for the dApp to work correctly (ie 'embark run' or 'embark blockchain')").yellow));
|
||||
|
||||
callback(null, dir_hash);
|
||||
|
Loading…
x
Reference in New Issue
Block a user