Welcome, Guest Login

Public Cloud Center

Migrating your project off of Xervo

Last Updated: Apr 05, 2017 10:02AM EDT

Moving Your Xervo to Zeit ‘Now’

Zeit ‘Now’ is a platform which has similarities that developers have enjoyed on our service in addition to many other great features such as auto scaling, backups, custom domains, deployments directly from GitHub repositories, and multi-region support at the enterprise level.

The pricing for ‘Now’ is great also, with a free tier, and a ‘premiere tier’ at $15 / month.

The Zeit team has also set-up a special #xervo channel in their Public Slack Community where members of the Zeit team will be on hand to answer migration-related questions.

In addition to our doc here, the Zeit team has also created the following migration guides:

https://zeit.co/blog/from-xervo-to-now
https://zeit.co/docs/features/zero-downtime-migration

Signing up for 'Now' on Zeit.co

One can sign up for Zeit 'Now' on their website here.

On the website enter your email address, and a verification email will be sent to the email address you entered. Upon verifying your email address you will be logged in for the first time and you may choose a username for your account.

You may also register an account through the CLI the first time you run the ‘now’ command.

$ npm i -g now
$ now

Installing Zeit Now

‘Now’ can be downloaded as a desktop application for Windows, Mac, & Linux.
Alternatively Now can be installed via NPM. 

There is more information about installing the application & CLI here: https://github.com/zeit/now-cli
https://zeit.co/download


Transitioning your Node.js project from Xervo.io to Zeit.co ‘Now’

If you don’t already have your latest project source local or in source-control, your source can be downloaded from the Xervo CLI or the project dashboard.

Source can deployed with ‘Now’ from a GitHub / BitBucket / GitLab repository in addition to your local computer.

  Example deploy commands:
 

 – Deploys the current directory
   $ now 
 – Deploys a custom path `/usr/src/project`
   $ now /usr/src/project 
 – Deploys a GitHub repository
   $ now user/repo#ref 
 – Deploys a GitHub, GitLab or Bitbucket repo using its URL
   $ now https://gitlab.com/user/repo 
 – Deploys with ENV vars
   $ now -e NODE_ENV=production -e MYSQL_PASSWORD=@mysql-password  

Example deploying local source

$ now
> Deploying ~/myNodeProjects/helloNode
> Warning! Requested node version 0.10.x is not available 7.6.0
> Using Node.js 7.6.0 (default)
> Ready! https://hello-rrzxltyiic.now.sh (copied to clipboard) [5s]
> Upload [====================] 100% 0.0s
> Sync complete (18.38kB) [2s]
> Initializing…
> Building
> ▲ npm install
> ⧗ Installing:
>  ‣ express@2.5.x
>  ‣ ejs@0.8.x
> ✓ Installed 7 modules [7s]
> ▲ npm start
> > helloWorld@0.0.1 start /home/nowuser/src
> > node server.js
> Deployment complete!
 

Downloading project source via Xervo CLI

Make sure you are using the latest Xervo CLI

npm update -g @xervo/cli

The project download command from the CLI will save your project source in the directory that you are currently operating from within your terminal.

xervo project download --output myProject.zip


Or specifying a specific project name:

xervo project download -p helloNode --output helloNode.zip


Please note, you must specify the output file name (with the --output flag) and it must end with the .zip extension.
 

Piping Env Vars to other service

Update your Xervo CLI if not already on v7.1.3
npm update -g @xervo/cli

Export your env variables for the specified project
xervo env export MyVariables.json -p meteorHello

In this particular example the environment variables for my project “meteorHello” will be exported into a .json file in the directory that you are currently operating within your terminal or command line interface.

Example downloading Node project and deploying to 'Now'

Example process:

$ mkdir -p ProjectBackups/helloNode
$ cd ProjectBackups/helloNode
$ xervo project download -p helloNode --output helloNodeSource.zip
$ unzip helloNodeSource.zip
$ npm i -g now
$ now



 

Migrating your Meteor project to Now

Meteor can also be deployed to Now by using a third party module: 'meteor-now.'
Meteor-now is explained here: https://github.com/jkrup/meteor-now

This is not recommended for production Meteor applications


$ mkdir -p ProjectBackups/helloMeteor
$ cd ProjectBackups/helloMeteor
$ xervo project download -p helloMeteor --output helloMeteorSource.zip
$ unzip helloMeteorSource.zip
$ xervo env export meteorHello.json -p meteorHello
$ npm i -g now
$ npm i -g meteor-now
$ meteor-now -e ROOT_URL=http://meteorhellooo-91234.app.xervo.io -e MONGO_URL=mongodb://test:test@someHost.mongo.net:27017/asf7Wef

Contact Us

    Our Support Policy
    Submit a Support Request

  • Public Cloud Support Hours
    9am-5pm EST Mon-Fri
    Outside of these hours response times may be up to 24hrs.


    Submit a support ticket by clicking 'status and support' icon on the left side of this page.



help@hellotangible.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en_us/portal/articles/autocomplete