Search for another article…

Publishing Your Site via WebMatrix 3

This article covers three steps needed to publish your website to Octane with WebMatrix 3. The steps are:

  1. Download Your Publishing File
  2. Import Publishing File Into WebMatrix 3
  3. Publish Your Site
  4. Set up your Database

Download your publishing file

  1. Log in to your GearHost Account
  2. Click on the CloudSite you wish to get the publishing file for
  3. Click the Publish tab inside CloudSite details
  4. Download publishing file by selecting the Visual Studio button under the Application Publishing Files title

If you reset your publishing password you will need to download your publishing file again and re-import it.

Import Publish File into WebMatrix 3

  1. Click on the Remote file menu
  2. Click publish
  3. Import publish profile
  4. Set database (only if needed)
    1. Locate your server
    2. Enter the credentials
    3. Password and username for the database are located under the database user section
  5. Validate connection

You can skip the test publish compatibility if you wish, the server is compatible with all static, Visual Basic, and .NET code.

Publish Your Site

When publishing your site from WebMatrix 3 you will receive a dialog showing you the changed files in your local project vs what is on the server. There will be an option to delete all files on the server that are not in your local development project.

  • Visit test URL provided for your site

This test URL should be in the format of http://{cloudsitename}.gearhostpreview.com where you replace {cloudsitename} with the name of your CloudSite

Set Up Your Database

There is currently a known issue with certain characters that are auto generated when you setup your database. If you are unable to connect to your database when using a publishing file go into your database in your account and change the password. The know characters are *()/"' so do avoid them when creating a new password.

  1. Create a new database by going to your database menu
  2. Set a Database name
  3. Select the database you need, either MySQL or MSSQL
  4. Select create empty database
  5. Set your password on the database to avoid the known issue of certain characters causing an issue during publishing

If you need to set up a connection to your database for management please follow the instructions in the articles below based on your database type.

Tip: You can publish your application using different methods. Such options include; Visual Studio, Git, and FTP! If you're still having an issue, please don't hesitate to open a support ticket.

comments powered by Disqus