{"__v":0,"_id":"588f722bbcace50f0052ba0d","category":{"version":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","_id":"588f722bbcace50f0052b9e7","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-12-17T21:29:23.551Z","from_sync":false,"order":5,"slug":"server-installation-configuration","title":"Self Hosting"},"parentDoc":null,"project":"565f5fa26bafd40d0030a064","user":"565f5f29de5dc50d00acfe9f","version":{"__v":1,"_id":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","createdAt":"2017-01-30T17:04:43.410Z","releaseDate":"2017-01-30T17:04:43.410Z","categories":["588f722bbcace50f0052b9e2","588f722bbcace50f0052b9e3","588f722bbcace50f0052b9e4","588f722bbcace50f0052b9e5","588f722bbcace50f0052b9e6","588f722bbcace50f0052b9e7"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"5.3.0","version":"5.3.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-28T13:37:18.073Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":17,"body":"Please refer to the \"[Supported Platforms](doc:supported-platforms)\" section for instructions on how to install PostgreSQL 9.4 or higher, it can be on the same server or a different one.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"body\": \"There is only one PostgreSQL instance needed if nanoscale.io binary is running on multiple nodes (i.e. running in a clustered setup).\"\n}\n[/block]\n1. Configure the nanoscale.io server to use either a configuration file or the command line options.\n\n2. Start nanoscale.io in migration mode (since it's the first time you are starting it).\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"./gateway -db-migrate\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n3. Seed the data (see [Manage Account and User Info](doc:seed-account-and-user-info)).\n\n4. Restart nanoscale.io sever in regular mode.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"./gateway\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"deploy-nanoscaleio-on-a-server","type":"basic","title":"Deploy nanoscale.io on a Server"}

Deploy nanoscale.io on a Server


Please refer to the "[Supported Platforms](doc:supported-platforms)" section for instructions on how to install PostgreSQL 9.4 or higher, it can be on the same server or a different one. [block:callout] { "type": "info", "body": "There is only one PostgreSQL instance needed if nanoscale.io binary is running on multiple nodes (i.e. running in a clustered setup)." } [/block] 1. Configure the nanoscale.io server to use either a configuration file or the command line options. 2. Start nanoscale.io in migration mode (since it's the first time you are starting it). [block:code] { "codes": [ { "code": "./gateway -db-migrate", "language": "shell" } ] } [/block] 3. Seed the data (see [Manage Account and User Info](doc:seed-account-and-user-info)). 4. Restart nanoscale.io sever in regular mode. [block:code] { "codes": [ { "code": "./gateway", "language": "shell" } ] } [/block]