{"_id":"588f722bbcace50f0052ba05","parentDoc":null,"__v":0,"category":{"_id":"588f722bbcace50f0052b9e7","version":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","__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"},"project":"565f5fa26bafd40d0030a064","version":{"_id":"588f722bbcace50f0052b9e1","project":"565f5fa26bafd40d0030a064","__v":1,"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"},"user":"565f3941ea46251700972783","updates":["57e5466a7ee1b50e00b7df4b","57eaedc943d2780e008e7a78"],"next":{"pages":[],"description":""},"createdAt":"2015-12-22T20:26:09.324Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":9,"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-nanoscale-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]