Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Publishing and Releasing Your Website
The publication is a way to prepare your website for the web so that you can make it available online with a hosting service.
Publishing your website
When you click on the File menu (☁ cloud symbol) and then Publish, Silex will generate an optimized version of your website, without the data needed to edit the file, and with several improvements for the search engines and users.
Silex will put the new version of your website to the location of your choice. You can set this location from the settings panel - File menu, then Settings. Click on the Browse button to choose a folder with the file browser.
note: In the file browser, click the arrow on the right of the folder name to select this folder.
Make your website available online
The next step for you will probably be to make it available to the public. If you want to make your site available online, you will need a hosting. With Silex you have several options:
Publish to github pages
As explained in the videos of the "Silex + Github = ♡" series here is a quick guide to host your site on Github pages, which is free and let you use your own domain name for free. Please open an issue to discuss this if you need more info. Note that github pages do not support https.
To start, publish your site as described above, in a folder on github, let's call it
test-github, and in a sub folder called
master (this is important). Your publish settings should look like this:
Then open github.com and go to the
test-github repository which has been created by silex, and open its settings. In the "github pages" section, choose "master branch" as the source and then click "save". This should look like this:
Finally click the adress which is given to you by github (as in the picture above), and you should see your website. Every time you publish your site, it will update it on github pages so be careful ;)
Use Dropbox + a service provider
If you do not want to deal with the complexity of a "real" hosting, you can publish to your Dropbox, and then use a service like My.DropPages, Site 44, Pancake.io or Forge, to get it live on the web. Or you can use Bitballoon or netlify, but these do not support Dropbox.
These services let you make a dropbox folder available online, with a domain name like yourname.site44.com. They are free to use, but you need to pay to use your own domain name, and it is a little bit more expensive than a "real" hosting - around $10/year instead. In fact the only drawback I see for these services is that the companies behind them are very fragile and may close from one day to another.
Host it yourself
It is recommended that you host your site yourself. This means that you will let a web hosting company or a non profit organization to put your data online - this may be free or paid service. You will then receive codes to access the folder they provide, so that you can transfer your data through FTP (automatic with Silex).
In the settings panel described above, click the browse button to open the file browser, and select FTP from the side bar - the third icon in the picture below.
Then publish your site. Silex will transfer all the files to the remote folder.