Welcome, Guest Login

Public Cloud Center

App.json Specification

Last Updated: Jul 10, 2015 10:15AM EDT

app.json is a manifest for your web applications. Use app.json to define your application’s environment and how Modulus will run the application.

app.json must be placed within the root of your project.

Example

{
  "name": "Modulus demo",
  "engines": {
    "java": "7",
    "tomcat": "7"
  },
  "env": {
    "MONGO_URL": "mongodb://..."
  }
}

Schema

name (optional) A name to identity your manifest or your project.

{
  "name": "Modulus demo"
}

 


 

engines (required) A key-value object that defines which runtime version(s) to build and run your project under. Note that this does not define the runtime for your project, only the version of the already selected runtime.

{
  "engines": {
    "java": "7"
  }
}

 



env (optional) A key-value object that defines environment variables. Values can be strings or objects. Strings will be used directly, objects will be parsed and supplied to the environment as stringified JSON.

{
  "env": {
    "MONGO_URL": "mongodb://...",
    "METEOR_SETTINGS": {
      "googleApiKey": "BB7DP446111"
    }
  }
}

 


scripts (optional) A key-value object that defines various scripts to run with your project. Keys and values must be strings.

{
  "scripts": {
    "start": "gunicorn -b unix:/mnt/home/app.sock wsgi
"
}


Go to top
 

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