![]() If you haven’t already, make sure to run lein clean & lein cljsbuild once min first in order to build the production-ready JavaScript bundle. ![]() In the case of the ping-times application, you will locate the compiled files intended for your production deployment in the public/resources/ directory of the project. You can of course follow along with your own application or static website. If you want to jump straight-in you can clone the GitHub repo here. To demonstrate the process we will use the ping-times SPA we’ve built. Object Storage is orders of magnitude cheaper than provisioning VMs with webserver and load balancers to handle the same load (compare Object Storage pricing of 0.018 EUR per GB per month to pricing of ~10 EUR per month per GB of RAM for the VM-hosted alternative.)ĭeploy a single-page application on Exoscale’s Object Storage. ![]() the operating burden of configuring a load balancer, web server, maintaining SSL certificates, and updating the underlying operating system is greatly more time consuming than using Object Storage.web servers are prone to security vulnerabilities – Object Storage is more secure (and since you only place publicly available files there anyways, a security breach is not a concern).no need to forecast traffic to correctly provision CPU/RAM resources – the Object Storage engine scales in the background as loads increase (those implementation details are handled by the Object Storage hosting provider).Object Storage makes a nice alternative to setting up a web server for hosting static files, boasting the following advantages: We’ve learned to build an SPA, now what could be the easiest way to share it with the rest of the world? We’ll need a reliable, secure place to host the static files. Host a single-page application or static website on Object Storage: a secure, reliable alternative. We’ll now describe a cost-effective way to host SPAs on Exoscale’s secure, multi-datacenter object-storage. You already know what is a single-page application and how to build one in ClojureScript and re-frame.
0 Comments
Leave a Reply. |