Alibaba Cloud Cloud Development Web Application Training Camp-Detailed explanation of the fourth clock-in task
Don't talk nonsense, just start
Note: Because it is a reissue, some steps are omitted in order to check in quickly. .
One, create a new application
Log in to the Alibaba Cloud Development Platform https://workbench.aliyun.com/ and
click [Create New Application] and select [WEB] Solution in the technical scenario of the new application window, select [NodeJS stock application migration plan] and click [Next] to
fill in the application name, Application introduction [20200922] Click Finish, wait for the code warehouse to initialize, and then click [Development and Deployment] to open Cloud IDE. After the IDE is opened, click on the terminal label below and enter in the terminal
npm i
Two, test application
Then click the [WB] icon in the upper left corner, click the test label, select the preview mode, and click the [Test] button to open the label in the IDE and display the test result.
Copy the environment variable information in the test results
OTS_ENDPOINT=https://todolist.cn-shanghai.ots.aliyuncs.com
OTS_INSTANCE=todolist
OTS_ACCESSKEY=LTAI4G1j3U8ue1yT3g6Tg1TG
OTS_SECRET=WB8Ev6zMHoKQnUSLp8V4zP7xeAgbWC
RDS_HOST=rm-uf6y14uhf0080yfrb7o.mysql.rds.aliyuncs.com
RDS_DBNAME=faas-test
RDS_USERNAME=faas_db_test
RDS_PASSWORD=YY6i8Jp7W_mtYxU
Three, application configuration
Open the cloud development platform application list, click [Application Configuration],
enter the domain name used in our daily environment in the [Bind Domain Name] input box on the pop-up page, click [Add Environment Variables in Bulk] to paste the environment variables just copied in the IDE and
click Send the environment label, fill in the pre-release environment binding domain name, and add the environment variable just copied
Click the online environment label, fill in the online environment binding domain name, and add the environment variable just copied
Fourth, deploy applications
Click the [OK] button to return to the IDE, click the [WB] tab in the upper left corner, click [Deploy] to select [Daily Environment] and click the [Deploy] button to deploy the daily environment.
After the deployment is complete, select [Pre-release Environment] and check the [Daily Environment] Publish to pre-release environment] Click the [Deploy] button. After the
pre-release environment is deployed, select [Online Environment] and check the [Publish pre-release environment to online environment] and click the [Deploy] button
to return to the application list to take a screenshot after deployment is complete , Clock in.
Screenshot below.
Application information:
Application configuration:
Five, application offline
After completing the check-in, you must remember to take the application offline, otherwise you may incur costs.
After completing the check-in, you must remember to take the application offline, otherwise you may incur costs.
After completing the check-in, you must remember to take the application offline, otherwise you may incur costs.
The important thing is said three times.
Be sure to make sure that [Daily], [Pre-release], and [Online] are all offline