Menu Developer Moovweb University

Cloud Management: Console Project Management

moov deploy

You can deploy your local Developer Dashboard project and send it to the Moovweb Cloud for hosting and delivery. Developer Dashboard projects are all generated through the “Generate New Project” button on the Developer Dashboard.

When you are ready to deploy a project you’ve tested locally through the Developer Dashboard, you first need to create a Control Center project so there will be a place to receive it in in the Moovweb Cloud, and where you can manage its settings.

To deploy a Developer Dashboard project to a project in the Control Center you use the command line. From the project directory run:

moov deploy <account-name>/<project-name>

For example, if your account name were “testuser520” and you wanted to deploy a Developer Center project to a Control Center project named “testproject79,” you would enter this command into a terminal from the top level of the Developer Dashboard project directory:

moov deploy testuser520/testproject79

There are a number of additional options that can be issued as part of a deploy. For example, if your Developer Dashboard project has multiple Layers, you can specify which one you want to deploy. If your Control Center project has different Modes defined, you can say which Mode of the project you are deploying to. You can even define custom pre-deploy scripts and post-deploy scripts that will have access to variables related to the build. You can also pass notes that will display in the Control Center next to a build, set a deploy ID, and more.

For all the details on how to customize your moov deploy command, check out the Deployment documentation, or issue the command moov help deploy for a full list of available options.


Building Projects

You can see your project info in the Control Center, under your Account Page:

Accounts menu

Here you will be able to see the history of versions that have been deployed, and download any version locally as a zip file that you can manage just like any other local project in the Developer Dashboard.

Once you’ve made any desired changes to the project you just downloaded, and updated any version control systems you are using, you are ready to go live, and deploy your code:

moov deploy <account-name>/<site-name>

If this is the first time you are deploying in this session, you may be asked for your Moovweb account credentials so you can access the sites you’ve created.

With just the default options, deploying your code to Moovweb will trigger the build process:

  1. Client-side JavaScript and Sass files are compiled
  2. Tests are run
  3. Assets are uploaded to a CDN
  4. Project is deployed to the Moovweb Cloud

The progress of your build will be displayed in your terminal, something like this: (The specifics may vary depending on how your project is configured.)

TaskRunner is running the on_deploy_command: "node ./tasks/deploy".
TaskRunner STDOUT: ++++ Preparing for deployment...
TaskRunner STDOUT: Validating Dependencies...
TaskRunner STDOUT: +++ Executing gulp.jsHint()
TaskRunner STDOUT: +++ Executing gulp.build()
TaskRunner STDOUT: ++++ Local environment is cleared for Deployment!
TaskRunner STDOUT: Browserified /Users/testuser520/workspace/testproject79/scripts (index.js) at Wed Oct 05 2016 17:37:11 GMT-0700 (PDT)
TaskRunner STDOUT: Production assets saved to ./build/assets
* Settings used for deployment
    Account:      testuser520
    Site:         testproject79
    Mode:         default
    Project Dir:  /Users/testuser520/workspace/testproject79
    Project Type: javascript
You are trying to deploy to a live Mode.
If you continue, this will have an effect on end users.
Do you wish to continue anyway? [Y/n]: y
* Uploading project files to the Moov cloud... Please wait.
* Upload complete!
* Building and deploying...

---+ Loading Project
---+ Compiling Project
   | Bundling js files...
   | No input directory specified, this might be an error. Please check to make sure it's not.
   | Finished bundling js.
   | Generating sprite-sheets with Spracker.
   | Folder '~/assets/images/sprites' contains no images; no sprite-sheet will be generated
   | Compiling Sass assets...
   | Finished compiling sass.
   | Compiling project to a slug...
   | Slug size:   202049 bytes.
   | Assets size: 320505 bytes.
---+ Registering Domains
   | Validating hosts...
   | Successfully registered host map for the following hosts:
   | - mtestuser52016879.testproject79.com =&gt; www.testproject79.com
---+ Deploying Project
   | Uploading assets to MoovCloud CDN...
   | build/assets folder detected! Uploading build/assets...
   | Syncing assets across regions...
   | Uploading project slug to MoovCloud servers.
   | Syncing across regions...
---+
Build v0 finished successfully

Rebuilding Modes

If you want to trigger a new build of an existing Mode, you don’t have to deploy again from your terminal. You can simply hit the rebuild button on any previous build of your project when viewing it in the Control Center. To interact with a specific build of a Mode, click the “Manage” button associated with the Mode in the Project’s Mode listing (Projects Index > projectname).

Rebuilding a Project


Project Management

The main project page contains a list of all the projects in your account. From here you can click the name of the project you wish to manage to view Modes. And to manage your project’s Modes, click on the “Manage” button.

Notifications

You can keep track of projects by watching them. By hovering over the name of a project on the main project listing page containing a project, you will reveal a “Watch” button on the right side of listing entry.

Watch project button

When you hit the button, you’ll get build notices whenever the following happen:

  • a project is built
  • a project is disabled or deleted
  • a subdomain (or hostname) is set up
  • a build prefix is assigned
  • redirection is set up
  • SSL is configured

(Make sure your spam filter doesn’t grab emails from @moovweb.com!)

You can turn emails off by hitting that button again (it will now say “Unwatch”), or you can manage which projects you watch by going to your settings page and choosing “Notifications”.

Project Page

Website Domains

The project page also has a list of domains that correspond to the project.

Moovweb generates a list of domains based on the moov_config.json file in your project’s source code.

You can also set up a Production Domain with a custom host variable (such as “m.example.com”) and enable Secure Domains that are secured with SSL (so https://m.example.com does not give security warnings) by following our instructions on production domains.