How to deploy API interfaces in the cloud

would you like to ask the bosses how to deploy the locally written background interfaces to the CVM?

the current situation is that there is an Aliyun lightweight server that uses win Server2012 R2 and has set up a wordpress blog. Now I am using mpvue to write a Mini Program. I have implemented part of the backend functions locally. I want to deploy the interface API to the cloud, and then the local mpvue can directly CRUD, the data through api, but after several twists and turns, I have been unable to deploy the backend to the cloud. Excuse me, where should I start? And Ali Yun has already run a wordpress,. How can we deploy this backstage to run without affecting it? (the background is written by node, and the database is mysql)

Mar.18,2021

  1. upload the code to the server and set up the environment for your code to run. For example, Node.js , MySQL , and so on.
  2. if the firewall service is enabled, remember to open the port of the corresponding service, otherwise you will not be able to access it. For example, MySQL , open 3306 . If the firewall service is not turned on, you don't have to think about it.
  3. then turn on all the services your program needs.
  4. then your local mpvue visits the api URL located on the server, and accepts the returned data
  5. .
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e3f421-4482b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e3f421-4482b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?