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.

$ ./engine/tools/update_site.php --with-database Site update host : mycompany.com user : alahup_engine path : www Available sites : a) mywebsite a WARNING Make sure the database file is not in use during the update. Will now update mywebsite's database file mywebsite_data.db. Press [y] to proceed y Will now update mywebsite Press [y] to proceed y Password: building file list ... 102 files to consider mywebsite/alahup/_main.php ... [ long list of installed files ] ... wrote 2239 bytes read 160 bytes 208.61 bytes/sec total size is 20628604 speedup is 8598.83

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.