Node:Specifying files on the command line, Next:, Up:Publishing a Website



Specifying files on the command Line

If you are interested in publishing specific account files then you can specify the individual files on the WebPublish command line. For example, if you have an account set up called personal and your computer automatically updates the home webpage from time to time, you can tell WebPublish to publish your updated home page by specifying the file on the command line.

webpublish --publish -a personal home.html

The example above will publish the file home.html to the personal account's server. Of course, the file home.html must be located in the base directory of the account's website.

Several files can be included on the command line. For example:

webpublish --publish -a personal home.html index.html etc/about.html media/photo.jpg

The example above will publish the files home.html, index.hmtl, etc/about.html, and media/photo.jpg to the personal account's server.

It is also correct to include the full file path of the individual files. The following example will publish the home.html file to the personal account's server.

webpublish --publish -a personal /home/mydir/mysite/home.html

The full file path must be included if you would like to use wildcards to select files. For example, if you would like to publish all of the jpg files in the etc directory of the personal account's website then you can use the following example.

webpublish --publish -a personal /home/mydir/mysite/etc/*.jpg