Deploying Project on Your Server¶
Flamingo service provides possibility to publish/deploy your projects on its CDN server as well as on your own server.
Prerequisites¶
When publishing project on your own server you are going to use self-hosted environment. So you need to add this environment to your project and pay special attention to the Storage URL property.
In this property, enter the URL address where your site should be located. For example, if mobile version of your site is stored in the mobile folder, you should enter http://www.mysite.com/mobile/ there.
Publishing/deploying project¶
To publish/deploy project to your own server, you need to use self-hosted environment:
- In Control Panel, open Project List.
- In the list, find your project and click on it to open.
- Add self-hosted environment to your project, if you have not done this yet.
Note
The address you specified in the Storage URL environment parameter will be used in the switcher code generated for your project.
- On the project Dashboard, click Publish to Live.
- On the Publish page, select Self-Hosted in the Environment list.
- Add note in the Publish Note field, if needed.
- Click Publish. Flamingo creates a *.zip file with your project.
- Download created *.zip file using the link sent to you by email.
Or you can perfrom all actions in Control Panel:
- Perfrom steps 1-7 from the previous walkthrough.
- Go to the project Integration page.
- Click on the self-hosted environment to open page with information about it.
- Click on the Download Source Code button.
- After *.zip file is loaded deploy it on your server (specified in the Storage URL environment property).
Now you can use the site on your own server.