added ipfs

This commit is contained in:
Mohammed Ashab Uddin
2020-09-02 16:16:55 +04:00
parent 09511c6d03
commit 973bda9cce
4 changed files with 42 additions and 26 deletions

View File

@@ -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!!!

View File

@@ -194,6 +194,13 @@ const commands = [
requireMedia: true
}),
new Command({
//User command
command: 'wg deploy ipfs',
//function to be executed
callback : logic.onDeployWebsite,
}),
];