Home >WeChat Applet >WeChat Development >Instructions for environment configuration of Ionic WeChat development

Instructions for environment configuration of Ionic WeChat development

高洛峰
高洛峰Original
2017-03-08 16:34:532174browse

When developing the WeChat version of the H5 page, if you need to call the open interface of the WeChat official account normally (for testing or publishing), you need to ensure that the web page domain name and back-end maintenance are consistent according to official requirements. Therefore, it is necessary to conduct real server testing. WebStorm provides a real-time remote deployment method, that is, using SFTP to automatically synchronize the code to the server every time the code is modified. In this way, the functions of the development interface can be successfully called during the WeChat testing process.

The steps are as follows:

1. Enter WebStorm and select File—New Project From Existing Files. In the pop-up dialog box, select Web server is on remote host, files are accessible via FTP/SFTP/FTPS.

Instructions for environment configuration of Ionic WeChat development

2. Fill in the name of the project and the local path of the project that requires remote debugging.

Instructions for environment configuration of Ionic WeChat development

3. Select an existing remote sftp, or create a new sftp (requires backend support)

Instructions for environment configuration of Ionic WeChat development

4. Select SFTP as the type, and fill in the remote address, port number, and storage path. Finally fill in the FTP username and password and click Save Password to save the password.

Instructions for environment configuration of Ionic WeChat development

#5. In order to ensure that every code modification can be automatically uploaded, please confirm that Upload changed files automatically to the default server under Deployment/Options in the Preferences settings is checked. Always

Instructions for environment configuration of Ionic WeChat development

6. The above checked text clearly states that it will be automatically uploaded to the default server, so you need to ensure that you select a default server. Click Deployment, select a server configuration, and click the green check mark to set it as the default server. Click Apply when finished.

Instructions for environment configuration of Ionic WeChat development

7. The sign of successful configuration is: after each code modification is saved, you can see the upload log of the file transfer console

Instructions for environment configuration of Ionic WeChat development

Now you can enjoy the secondary development of WeChat public accounts in a real environment!

The above is the detailed content of Instructions for environment configuration of Ionic WeChat development. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn