Deploying: Moovweb Cloud

Up until this point, you have been developing and creating a new experience locally. This training course will illustrate how to deploy your project to the Moovweb Cloud so you can see your new website live in minutes!

Prerequisites: This tutorial assumes you already have a project that is ready to deploy to the Moovweb Cloud.

Duration: 25 minutes


Outline


Control Center Account

In order to deploy projects to the Moovweb Cloud, you must have a Control Center Account. If you haven’t signed up yet, please do so now at https://console.moovweb.com.

Once you’ve logged in, you should be on your default account page. You may also have a number of shared accounts. To switch accounts, go to the Accounts dropdown and choose the appropriate one.

My Account

The account page offers a list of Moovweb sites associated with that account. It also has buttons for disabling a site, following a site, creating a site, and managing users.

Account Page

From the Manage Account page, you can invite new users to join your sites. You can also promote these users to managers to give them more control over your sites.

Create a Moovweb Site

Now that you have an account, you can create a Moovweb Site.

Requirements for a Moovweb Site

The Site name will be the publicly available Internet URL that will eventually become live.

CNAME setup

Once this is all set up, any requests to www.yoursite.com or m.yoursite.com will first hit a Moovweb Cloud Server, which will request content from origin.yoursite.com, transform the content based on your Moovweb project code, and return the transformed experience to your end users.

You will also have to set up new valid SSL certificates if the data is communicated over HTTPS.

Deploying Your Project

Projects are deployed using the command line.

Choose the project you want to deploy and make sure you are in the project folder in your command line.

To deploy your project to your site, you use the command line. The command to use for Moovweb 5 and later is moov deploy.

Moovweb 4.7 and earlier, use git push

For Moovweb 4.7 and earlier, Git is required to deploy to the Moovweb Cloud.

Use git to add and commit any files you have been working on.

git add --all git commit -a -m "Changes I have made"

And then you can push your files to the Moovweb Git server:

git push [remote] master

Where “remote” refers to the Moovweb Cloud Git repo (see image above).

To see a list of your remote repositories:

git remote -v

Every time you make changes to the project, you should add, commit, and then push to the Moovweb Cloud.

Verifying Your Deploy

When you deploy, you will see each build version appear at the bottom of the project page in the Control Center:

Commit history

They give the version of the project pushed, whether the project was built successfully (e.g., making sure Tritium syntax is correct), unique commit ID, the user that committed, and the time and date.