For Existing/Update Project
-
To upgrade the whoxa version you have to do manual installation.
-
First Navigate to our project.
cd /var/www/whoxa
-
Backup important data like media and credential
cp -r uploads/ ../
cp .env ../
cp config/config.json ../
cp ./validatedToken.txt ../ -
Then clear the whoxa folder
rm -rf /var/www/whoxa/{*,.*}
- this will remove the all files from whoxa
don't worrie if you get:
rm: refusing to remove '.' or '..' directory: skipping '/var/www/whoxa/.'
You have to only upload backend zip instead of whole automation zip
-
So first extract whoxa_backend.zip
-
then you will get auto_deploy.zip
-
again extract that auto_deploy.zip
-
then you will get
whoxa.zip
so you have to upload that zip at /var/www/ -
Now upload that whoxa.zip at /var/www/whoxa/
-
then extract that zip file with
unzip whoxa.zip
Replace the files
- Now we have to replace
uploads
folder and.env
andconfig.json
file.cp -r ../uploads/ ./
cp ../config.json ./config/
cp ../.env ./
cp ../validatedToken.txt ./ - Then run
npm i
which will install neccessary packages.npm i
Restart the node.js server
pm2 restart 0