ipfs publish successful

pull/452/head
aniket-engg 4 years ago committed by Aniket
parent 883ec0aeb4
commit aac57736fc
  1. 7
      apps/remix-ide/ci/publishIpfs
  2. 3
      package-lock.json
  3. 1
      package.json

@ -1,6 +1,5 @@
#!/usr/bin/env node
const all = require('it-all')
const IpfsHttpClient = require('ipfs-http-client')
const { globSource } = IpfsHttpClient
console.log('current folder', process.cwd())
@ -11,11 +10,7 @@ const folder = process.cwd() + '/temp_publish_docker';
const ipfs = IpfsHttpClient({ host, port: 443, protocol: 'https' })
try {
let result = await ipfs.add(globSource(folder, { recursive: true}), { pin: false })
console.log('result ====>', result)
const remoteFolder = result
// const remoteFolder = result[result.length - 1]
console.log('remoteFolder ====>', remoteFolder)
const hash = remoteFolder.cid.toString()
const hash = result.cid.toString()
console.log('ipfs://' + hash)
console.log('https://ipfsgw.komputing.org/ipfs/' + hash)
console.log('https://gateway.ipfs.io/ipfs/' + hash)

3
package-lock.json generated

@ -20952,7 +20952,8 @@
"it-all": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/it-all/-/it-all-1.0.4.tgz",
"integrity": "sha512-7K+gjHHzZ7t+bCkrtulYiow35k3UgqH7miC+iUa9RGiyDRXJ6hVDeFsDrnWrlscjrkLFOJRKHxNOke4FNoQnhw=="
"integrity": "sha512-7K+gjHHzZ7t+bCkrtulYiow35k3UgqH7miC+iUa9RGiyDRXJ6hVDeFsDrnWrlscjrkLFOJRKHxNOke4FNoQnhw==",
"dev": true
},
"it-concat": {
"version": "1.0.1",

@ -136,7 +136,6 @@
"ethereumjs-tx": "^2.1.2",
"ethereumjs-vm": "4.1.3",
"http-server": "^0.11.1",
"it-all": "^1.0.4",
"merge": "^1.2.0",
"npm-install-version": "^6.0.2",
"signale": "^1.4.0",

Loading…
Cancel
Save