This ./dist/. is the packaged path of yarn install. This is the server file path. Ensure that there is a folder /root/erp/web/ with permissions.
Modify the credential id acquisition method as follows
The SSH private key* acquisition method is demonstrated here for the pagoda server, and the others are similar
Enter ssh-keygen -m PEM -t rsa in the Pagoda terminal and press Enter
SSH private key* Put this SSH private key* in this file and save it here
/root/.ssh/id_rsa.
There is also the ssh public key to configure the public key in the pagoda in this file
/root/.ssh/id_rsa.pub.
Copy the content of the generated public key (id_rsa.pub.) and put it into (accessed) server root/.ssh/authorized_keys Paste it into this file to indicate authorization; other servers can access this server through the private key without this file or folder to create one;
It is recommended to directly authorize here and click to confirm
After creation, copy this credential id and save it for use below
Finally, click Save and click Build Now, then you can upload the dist file to the specified address on the server
In the future, just click build every time or set it to push code to build
Note that the vue project needs to be started for the first time, and then you don’t need to start it, just click build, vue’s first start method