Deployment

תפריט צד 2.5

אחוז תורגם

בפרק זה:

  • Learn how to deploy on Meteor.com.
  • Learn how to deploy on Modulus.
  • Learn how to deploy on your own server using Meteor Up.
  • ////

    ////

    ////

    Introducing Sidebars

    ////

    ////

    Deploying On Meteor

    ////

    ////

    $ meteor deploy myapp.meteor.com
    

    ////

    ////

    Password Protection

    ////

    $ meteor deploy myapp.meteor.com -p
    

    ////

    ////

    Deploying On Modulus

    ////

    Demeteorizer

    ////

    ////

    $ npm install -g modulus
    

    ////

    $ modulus login
    

    ////

    $ modulus project create
    

    ////

    ////

    $ modulus env set MONGO_URL "mongodb://<user>:<pass>@mongo.onmodulus.net:27017/<database_name>"
    

    ////

    $ modulus deploy
    

    ////

    Meteor Up

    ////

    ////

    ////

    ////

    Initializing Meteor Up

    ////

    $ npm install -g mup
    

    ////

    ////

    ////

    $ mkdir ~/microscope-deploy
    $ cd ~/microscope-deploy
    $ mup init
    

    Sharing with Dropbox

    ////

    Meteor Up Configuration

    ////

    ////

    ////

    {
      //server authentication info
      "servers": [{
        "host": "hostname",
        "username": "root",
        "password": "password"
        //or pem file (ssh based authentication)
        //"pem": "~/.ssh/id_rsa"
      }],
    
      //install MongoDB in the server
      "setupMongo": true,
    
      //location of app (local directory)
      "app": "/path/to/the/app",
    
      //configure environmental
      "env": {
        "ROOT_URL": "http://supersite.com"
      }
    }
    
    mup.json

    ////

    Server Authentication

    ////

    ////

    MongoDB Configuration

    ////

    ////

    Meteor App Path

    ////

    Environment Variables

    ////

    Setting Up and Deploying

    ////

    $ mup setup
    

    ////

    $ mup deploy
    

    ////

    Displaying Logs

    ////

    $ mup logs -f
    

    ////

    ////