{"_id":"57ee2436c96f3019006f84c2","user":"5758162672609e0e00523fae","version":{"_id":"56a0bd9e3697d80d002ac5e7","project":"54774d9af3736008009e9e0e","__v":20,"createdAt":"2016-01-21T11:14:38.131Z","releaseDate":"2016-01-21T11:14:38.131Z","categories":["56a0bd9f3697d80d002ac5e8","56a0bd9f3697d80d002ac5e9","56a0bd9f3697d80d002ac5ea","56a0bd9f3697d80d002ac5eb","56b098a43a5b810d00745e3f","56b098da8f7a4f0d0029dd10","56d5a8ecf612b80b00fb69cd","570989853ab43c0e0072b2d6","571006aa10300c0e007f6133","5735a52431a73b1700887ca0","5744b0529e045c0e00b7a7a2","5744b1d0b56d431700d8a4fb","5744b1fb55d65a0e00b436e1","5744b218f9c7411700ce560e","5744b220f9c7411700ce560f","5744b2259e045c0e00b7a7a7","5744b22cf8b79f0e00de6a2d","5744b23155d65a0e00b436e4","5744b242c758290e00fbc235","5744b2569e045c0e00b7a7a8","5756a3f2bb92962900dafe3d","57ee23e81e42900e0014a42f","581c822c98676e0f00d240ef"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"Sockets","version_clean":"1.1.0","version":"1.1"},"parentDoc":null,"project":"54774d9af3736008009e9e0e","__v":1,"category":{"_id":"581c822c98676e0f00d240ef","project":"54774d9af3736008009e9e0e","__v":0,"version":"56a0bd9e3697d80d002ac5e7","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-11-04T12:42:20.972Z","from_sync":false,"order":15,"slug":"hosting","title":"Hosting"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-30T08:37:10.961Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":0,"body":"Chapter sections:\n1. [Hosting Overview](#hosting-overview)\n2. [Create Hosting and upload files from the Dashboard](#create-hosting-and-upload-files-in-the-dashboard)\n3. [Create Hosting and upload files from the CLI](#create-hosting-and-upload-files-in-the-cli)\n4. [Summary](#summary)\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Hosting Overview\"\n}\n[/block]\nHosting lets you store the files in Syncano and make them accessible via custom domains. In order to publish your website or application is you just have to create a Hosting in Syncano and upload the files there. Your domains will link to a default page explaining how to use CLI as a main tool to manage your application's backend. To set up your page you don't have to do anything more but upload an index file. Then the domain will be leading to your page.\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Default Hosting\",\n  \"body\": \"First hosting in your instance is always set as default at the beginning. It means that this hosting already has one domain named the same as your instance. For example when your instance name is 'hosting-instance' the link to your hosting is 'https//hosting-instance.syncano.site'. Of course you can change change which hosting is set to default whenever you want.\"\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"warning\",\n  \"body\": \"Each instance can have only one default hosting.\"\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Create Hosting and upload files in the Dashboard\"\n}\n[/block]\n### Create Socket\nAfter you log in to your [Dashboard's](http://dashboard.syncano.io/) instance, click \"Hosting\" on the sidebar and then open Add Hosting dialog as shown below\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/3dac31e-Screen_Shot_2016-11-04_at_14.04.17.png\",\n        \"Screen Shot 2016-11-04 at 14.04.17.png\",\n        2560,\n        1350,\n        \"#234878\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/5237652-Screen_Shot_2017-03-08_at_12.49.30.png\",\n        \"Screen Shot 2017-03-08 at 12.49.30.png\",\n        975,\n        643,\n        \"#f8f8f8\"\n      ],\n      \"caption\": \"\"\n    }\n  ]\n}\n[/block]\n`Name` field is required and the URL of your hosting depends on it. For example if you name your hosting `customhosting` it is available at `https://customhosting--<your_instance_name>.syncano.site`. In `CNAME` field you can provide your own domain which will be an additional alias to your hosting url.\n\n### Upload files\nAfter you have created a Hosting you will be redirected to hostings list. To see or add files, please click the `Files` button.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/1157c75-Screen_Shot_2016-11-04_at_14.31.52.png\",\n        \"Screen Shot 2016-11-04 at 14.31.52.png\",\n        2560,\n        1350,\n        \"#25497a\"\n      ],\n      \"caption\": \"\"\n    }\n  ]\n}\n[/block]\nAt the beginning there are no files. Your domain is displaying a default page where you can find explanation how to use CLI. To add files, please click one of the buttons. First button allows you to add files, whereas the second - the folder from which files should be uploaded.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/1288f10-Screen_Shot_2016-11-14_at_11.45.13.png\",\n        \"Screen Shot 2016-11-14 at 11.45.13.png\",\n        518,\n        621,\n        \"#323133\"\n      ]\n    }\n  ]\n}\n[/block]\nWhen selecting a folder with files to be uploaded, just the files inside this folder are actually being uploaded – the folder itself is not... After successful add files to queue, the summary view should pop out, showing how many files are going to be uploaded.  Next, just click the `Send Files` button and the upload process will begin.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/2eafe63-Screen_Shot_2016-11-14_at_11.53.13.png\",\n        \"Screen Shot 2016-11-14 at 11.53.13.png\",\n        649,\n        778,\n        \"#313032\"\n      ]\n    }\n  ]\n}\n[/block]\nAfter upload the summary view will be shown, where you can see how many files have been uploaded successfully. If any of the files encountered errors, you will also see information about the errors.\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/075393d-Screen_Shot_2016-11-14_at_12.01.10.png\",\n        \"Screen Shot 2016-11-14 at 12.01.10.png\",\n        519,\n        623,\n        \"#e7dad3\"\n      ]\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Summary\"\n}\n[/block]\nThanks to Hosting you can serve your project straight from Syncano via Browser. Moreover you can use encrypted version of HTTP, so connection to your service would be always secure.\nTo manage your hosting we encourage you to use [Syncano CLI](https://github.com/Syncano/syncano-cli#syncano-command-line-tool). But you can also use Dashboard if you prefer.","excerpt":"","slug":"hosting","type":"basic","title":"Overview"}
Chapter sections: 1. [Hosting Overview](#hosting-overview) 2. [Create Hosting and upload files from the Dashboard](#create-hosting-and-upload-files-in-the-dashboard) 3. [Create Hosting and upload files from the CLI](#create-hosting-and-upload-files-in-the-cli) 4. [Summary](#summary) [block:api-header] { "type": "basic", "title": "Hosting Overview" } [/block] Hosting lets you store the files in Syncano and make them accessible via custom domains. In order to publish your website or application is you just have to create a Hosting in Syncano and upload the files there. Your domains will link to a default page explaining how to use CLI as a main tool to manage your application's backend. To set up your page you don't have to do anything more but upload an index file. Then the domain will be leading to your page. [block:callout] { "type": "info", "title": "Default Hosting", "body": "First hosting in your instance is always set as default at the beginning. It means that this hosting already has one domain named the same as your instance. For example when your instance name is 'hosting-instance' the link to your hosting is 'https//hosting-instance.syncano.site'. Of course you can change change which hosting is set to default whenever you want." } [/block] [block:callout] { "type": "warning", "body": "Each instance can have only one default hosting." } [/block] [block:api-header] { "type": "basic", "title": "Create Hosting and upload files in the Dashboard" } [/block] ### Create Socket After you log in to your [Dashboard's](http://dashboard.syncano.io/) instance, click "Hosting" on the sidebar and then open Add Hosting dialog as shown below [block:image] { "images": [ { "image": [ "https://files.readme.io/3dac31e-Screen_Shot_2016-11-04_at_14.04.17.png", "Screen Shot 2016-11-04 at 14.04.17.png", 2560, 1350, "#234878" ] } ] } [/block] [block:image] { "images": [ { "image": [ "https://files.readme.io/5237652-Screen_Shot_2017-03-08_at_12.49.30.png", "Screen Shot 2017-03-08 at 12.49.30.png", 975, 643, "#f8f8f8" ], "caption": "" } ] } [/block] `Name` field is required and the URL of your hosting depends on it. For example if you name your hosting `customhosting` it is available at `https://customhosting--<your_instance_name>.syncano.site`. In `CNAME` field you can provide your own domain which will be an additional alias to your hosting url. ### Upload files After you have created a Hosting you will be redirected to hostings list. To see or add files, please click the `Files` button. [block:image] { "images": [ { "image": [ "https://files.readme.io/1157c75-Screen_Shot_2016-11-04_at_14.31.52.png", "Screen Shot 2016-11-04 at 14.31.52.png", 2560, 1350, "#25497a" ], "caption": "" } ] } [/block] At the beginning there are no files. Your domain is displaying a default page where you can find explanation how to use CLI. To add files, please click one of the buttons. First button allows you to add files, whereas the second - the folder from which files should be uploaded. [block:image] { "images": [ { "image": [ "https://files.readme.io/1288f10-Screen_Shot_2016-11-14_at_11.45.13.png", "Screen Shot 2016-11-14 at 11.45.13.png", 518, 621, "#323133" ] } ] } [/block] When selecting a folder with files to be uploaded, just the files inside this folder are actually being uploaded – the folder itself is not... After successful add files to queue, the summary view should pop out, showing how many files are going to be uploaded. Next, just click the `Send Files` button and the upload process will begin. [block:image] { "images": [ { "image": [ "https://files.readme.io/2eafe63-Screen_Shot_2016-11-14_at_11.53.13.png", "Screen Shot 2016-11-14 at 11.53.13.png", 649, 778, "#313032" ] } ] } [/block] After upload the summary view will be shown, where you can see how many files have been uploaded successfully. If any of the files encountered errors, you will also see information about the errors. [block:image] { "images": [ { "image": [ "https://files.readme.io/075393d-Screen_Shot_2016-11-14_at_12.01.10.png", "Screen Shot 2016-11-14 at 12.01.10.png", 519, 623, "#e7dad3" ] } ] } [/block] [block:api-header] { "type": "basic", "title": "Summary" } [/block] Thanks to Hosting you can serve your project straight from Syncano via Browser. Moreover you can use encrypted version of HTTP, so connection to your service would be always secure. To manage your hosting we encourage you to use [Syncano CLI](https://github.com/Syncano/syncano-cli#syncano-command-line-tool). But you can also use Dashboard if you prefer.