You should really change the development address for the live server address before uploading to the live site as any Actions that use this address will try (and fail if it is unreachable) to point back to your development server from the live site. The Create Email Action (for example) uses this address to work out the absolute paths to your image files. The URL field isn’t used for uploading or transferring the site files but gets used for various Actions that need to know the absolute path to certain files in your site. Is there anyway to set a secondary upload location, one for development uploads and the other for live uploads or does that cause issues with FWP?įreewaytalk mailing your subscriptions at: I’ll leave that as a task for the avid reader! A more robust solution may be to check the document against the server details so that you can’t accidentally upload one site into the wrong server space. There is very little error checking in the script above.Make sure your FTP details are correct before you try and run the script as Freeway has a habit of crashing if you get them wrong.Personally I think this is a bug so if you do switch between servers then create a script for each server and make sure you use the correct script for the right server. Freeway actually stores the FTP details used in the script in the document (File > Document Setup > Upload).Your FTP details are available to view if anyone should find this script and open it up in AppleScript Editor.Now if you run the script it will FTP the frontmost document into the server space you specified in the script.Īs with most things in life there are a few things to consider Upload document 1 via ftp server "" directory "public_html/testing/" user "" password "demo"Ĭopy this code into Applescript Editor, change the FTP details and save it as an application with run only, startup screen and stay open all unchecked in the options. For example tell application "Freeway Pro" The simplest solution is to use an AppleScript (one of the few things you can control in Freeway through an AppleScript) to force Freeway to upload your site to your desired server. If not you could look into creating a watch folder and use a dedicated FTP app like Transmit to monitor the folder for changes and upload the files it needs. This assumes that you can transfer the files to your local development server using a file copy rather than FTP (or one of the secure variants). Freeway allows you to enter both file copy and FTP information in the File > Document Setup > Upload tab which means you can easily switch between these.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |