mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-16 23:57:11 +00:00
feature(@embark/ipfs) add other gateway urls for ipfs
This commit is contained in:
parent
2cc0d305e6
commit
cfd06b5fe1
@ -46,28 +46,30 @@ class IPFS {
|
||||
function printUrls(dir_hash, callback) {
|
||||
console.log(("=== " + __("DApp available at") + " http://localhost:8080/ipfs/" + dir_hash + "/").green);
|
||||
console.log(("=== " + __("DApp available at") + " https://ipfs.infura.io/ipfs/" + dir_hash + "/").green);
|
||||
console.log(("=== " + __("DApp available at") + " https://gateway.ipfs.io/ipfs/" + dir_hash + "/").green);
|
||||
console.log(("=== " + __("DApp available at") + " https://cloudflare-ipfs.com/ipfs/" + dir_hash + "/").green);
|
||||
if(self.env === 'development') {
|
||||
console.log(("\n=== " +
|
||||
"Blockchain must be running".bold +
|
||||
"Blockchain must be running".bold +
|
||||
" ===").yellow);
|
||||
console.log((
|
||||
"embark run".italic +
|
||||
__(" or ") +
|
||||
"embark blockchain".italic +
|
||||
"embark run".italic +
|
||||
__(" or ") +
|
||||
"embark blockchain".italic +
|
||||
__(" must be running when the site is loaded to interact with the blockchain.\n")
|
||||
).yellow);
|
||||
console.log(("=== " +
|
||||
"Usage with the public gateway".bold +
|
||||
console.log(("=== " +
|
||||
"Usage with the public gateway".bold +
|
||||
" ===").yellow);
|
||||
console.log((
|
||||
__("If you wish to load your development site from the public gateway (ipfs.infura.io), you will need to first update your CORS settings (") +
|
||||
"config/blockchain.js > wsOrigins".italic +
|
||||
"config/blockchain.js > wsOrigins".italic +
|
||||
__(" and ") +
|
||||
"config/blockchain.js > rpcCorsDomain".italic +
|
||||
__(") to allow ") +
|
||||
"ipfs.infura.io".underline +
|
||||
__(". If these were set to 'auto', they would now need to be set to ") +
|
||||
"https://ipfs.infura.io,http://localhost:8000,http://localhost:8500,embark".underline +
|
||||
__(") to allow ") +
|
||||
"ipfs.infura.io".underline +
|
||||
__(". If these were set to 'auto', they would now need to be set to ") +
|
||||
"https://ipfs.infura.io,http://localhost:8000,http://localhost:8500,embark".underline +
|
||||
".\n").yellow);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user