Developer Documentation
Getting started
Overview
Semantic elements
Deployment
Syncing Tools > update_site
The update_site script lets you effortlessly put a local site online, without the risk of breaking things.
Before you upload the site for the first time :
-
Make sure you successfully uploaded the engine first.
-
Make sure you changed the url in the site's config/_config.prod.ini : this should be now set to the url of the production site ! (Also, don't forget the trailing slash).
Here is an example of a site remote install using update_site.php.
When the --with-database argument is used, the local database file (if the database used is SQLite) will be uploaded too.
This feature is recommended for first install only.
Windows users uploading the database file of the site to a Linux server may need to fix permissions thereafter.
To fix them, log via ftp or sftp and give read/write rights to the uploaded database file (mywebsite_data.db in sites_db folder).
Make sure the manager no longer complains about permissions issues.