Deployment Options

With Scrivito, there is no backend you need to worry about when deploying your Scrivito-based app – you only need a place to host your JavaScript and HTML files. Theoretically, you could use your laptop! But seriously, there are so many better options than leaving your laptop on 24/7. We don't limit where you can host your files, AWS, Google, your own servers, as long as you can access our API (the device has an internet connection) you are good to go. But not all services are equal, and there are some addons that are helpful for static websites like the one you have with Scrivito.

We partnered with Netlify

We teamed up with our friends at Netlify to host your Scrivito trial and subsequent websites. They make it so easy and work hard on their platform, why reinvent the wheel, right? Additionally, instead of a single server, using Netlify pushes your website to a global network of intelligent CDN nodes that also handle asset fingerprinting, automatic caching headers, and smart redirect and rewrite rules. And for the SEO minded, they have prerendering built in. Netlify was built for serverless websites like Scrivito as well as static and JAMstack websites.

As a note: When you create a Scrivito website, it is automatically deployed, and your HTML/JS files are hosted on Netlify. 

Deploy your build file 

You can re-deploy any code changes via the dashboard until you claim your site at Netlify (more on that in a bit). After changing your code, just run npm run build on your command line. This creates a build.zip file which includes everything needed to deploy your website.

Deploy from the dashboard

With your newly minted ZIP file including all your awesome changes:

  1. Go to your dashboard at my.scrivito.com.
  2. Choose the corresponding website (if you have more than one).
  3. Select the Deployment tab.
  4. Click the “Choose File” button and select the build.zip file for deployment.

This will re-deploy your site, it should take less than 5 minutes!

Expand your deployment options

Netlify offers other options for deploying and managing your website. If you would like to take advantage of these options, you can “Claim Your Site on Netlify”, and Scrivito will take a step back letting you handle all the domain management and subsequent deployments via their dashboard.

Claiming your tenant in the Scrivito dashboard

To claim your Scrivito website on Netlify, all you have to do is:

  1. Go to your website's settings at my.scrivito.com.
  2. Choose the ”Deployment” tab.
  3. Click the CLAIM YOUR SITE ON NETLIFY button.

After clicking the button you will be directed to Scrivito’s portal on Netlify. From here you can log in or create a free account with Netlify. You will be notified that you will no longer be able to deploy this website from the Scrivito dashboard, but that is okay, they have many more options available for you. 

Deployment via Git integration

CI and CD, continuous integration and continuous deployment are hot buzzwords in the developer world, and for good reason. Giving your users and visitors the latest changes to your website faster means they are happier. Scrivito content changes are already visible on your live website each time you hit the “Publish” button. Now with Git integration set up via Netlify, your code changes can be re-deployed each time you push your changes.

Netlify can integrate with GitHub, GitLab and Bitbucket to deploy your code changes directly from the repository. From the Netlify dashboard you can choose which service to use and set up integration, simply. Once set, you can decide which repo and even which branch is deployed when code changes are pushed. This option enables the option for “deploy previews” as well as A/B testing, or “split testing” as Netlify references it, to divide traffic to your site between different deploys.

Note that when deploying with Git, you will need to add your environment variables to their system as the .env file should stay out of your repository for security reasons. You can add this key-value pair at https://app.netlify.com/sites/name-of-your-website-on-netlify/settings/deploys#build-environment-variables.

Deployment made easy

Scrivito websites are meant to be faster and easier to maintain. Deployments are just one of many ways we work to achieve this goal. As stated, you can deploy your JS and HTML code anywhere you prefer, but keep in mind the additional options that are important for this type of website: asset fingerprinting, automatic caching headers, smart redirect and rewrite rules and prerendering. These options can of course be added or created for any hosting provider, but we partnered with Netlify as they have it all included for you. Deploy via our dashboard or their dashboard, or set Git integration and deploy your site with each update to the repository, it’s easy … as it should be.