added ipfs
This commit is contained in:
@@ -595,7 +595,7 @@ module.exports.onDeployWebsite = () => {
|
||||
callback : async () => {
|
||||
let res = new Promise( (resolve, reject) => {
|
||||
request({
|
||||
url: process.argv[2]+"/ipfsdeploy?id="+user.getSelectedWebsite().companyName,
|
||||
url: process.argv[2]+"/ipfsdeploy?id="+ user.getSelectedWebsite().companyName,
|
||||
method: "GET",
|
||||
headers: {
|
||||
"content-type": "application/json", // <--Very important!!!
|
||||
|
||||
@@ -194,6 +194,13 @@ const commands = [
|
||||
|
||||
requireMedia: true
|
||||
}),
|
||||
new Command({
|
||||
//User command
|
||||
command: 'wg deploy ipfs',
|
||||
|
||||
//function to be executed
|
||||
callback : logic.onDeployWebsite,
|
||||
}),
|
||||
];
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user