Deploy Hybrid to AWS S3

The development of the Growth Ren APP is still continuing, because the APP itself is developed based on the Hybrid application of Ionic and Angluar of. And because I only have an Android developer account, and I don’t have an iPhone or iOS developer account, and I don’t have a Windows 10 development machine (although I have a developer account and a WP phone, I don’t have my own computer). Therefore, I can only think of ways to develop a web application.

Fortunately, the content of Ionic can be directly turned into a web application without modification. Then the rest is very simple, just find a place to put these static resources.

AWS S3 and Nginx forwarding< /h3>

In the beginning, I thought about using Github Page, but later I considered the problem of easy access. As well as the future migration of the blog to S3, I decided to upload it to a CDN. At the beginning, I thought about using Alibaba Cloud, which would be faster. However, without filing, I can only use S3.

Fortunately, I have a little development experience with S3, use grunt-aws-s3 plug-in creates a simple deployment script.

  • divide files into different Copy several directories to S3

  • Set all files CacheControl:'max-age=31536000' (It was later discovered that this was a pit).

  • For index.html< /code>File settingsContentType:'text/html'

It is worth noting that the bucket name of AWS S3 needs to be the same as the name of the domain name, which means When we set up a proxy on Nginx, it becomes very easy-direct Proxy.

Summary

Although React and React Native seem to have very good prospects, it seems that they are not complete due to their UI components, plug-ins, etc. At present, the advantages of hybrid applications are still huge. At least once we develop them, we can run them on different platforms, and we can also run them on the website.

The development of the Growth Ren APP is still continuing, because the APP itself is Developed based on the Hybrid application of Ionic and Angluar. And because I only have an Android developer account, and I don’t have an iPhone or iOS developer account, and I don’t have a Windows 10 development machine (although I have a developer account and a WP phone, I don’t have my own computer). Therefore, I can only think of ways to develop a web application.

Fortunately, the content of Ionic can be directly turned into a web application without modification. Then the rest is very simple, just find a place to put these static resources.

AWS S3 and Nginx forwarding< /h3>

In the beginning, I thought about using Github Page, but later I considered the problem of easy access. As well as the future migration of the blog to S3, I decided to upload it to a CDN. At the beginning, I thought about using Alibaba Cloud, which would be faster. However, without filing, I can only use S3.

Fortunately, I have a little development experience with S3, use grunt-aws-s3 plug-in creates a simple deployment script.

  • divide files into different Copy several directories to S3

  • Set all files CacheControl:'max-age=31536000' (It was later discovered that this was a pit).

  • For index.html< /code>File settingsContentType:'text/html'

It is worth noting that the bucket name of AWS S3 needs to be the same as the name of the domain name, which means When we set up a proxy on Nginx, it becomes very easy-direct Proxy.

Summary

Although React and React Native seem to have very good prospects, it seems that they are not complete due to their UI components, plug-ins, etc. At present, the advantages of hybrid applications are still huge. At least once we develop them, we can run them on different platforms, and we can also run them on the website.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3863 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.