Difference between revisions of "Running Titan Script on localhost"

From TITAN Wiki
Jump to: navigation, search
(Created page with "== Download and install Visual Studio Community 2015 == Go to https://www.visualstudio.com/products/free-developer-offers-vs, download Visual Studio Community and follow the i...")
(Tag: visualeditor)
 
m
(Tag: visualeditor)
Line 1: Line 1:
== Download and install Visual Studio Community 2015 ==
 
Go to https://www.visualstudio.com/products/free-developer-offers-vs, download Visual Studio Community and follow the installation wizzard.
 
 
 
== Download Titan Script files via FTP ==
 
== Download Titan Script files via FTP ==
 
[[How to use FTP Client?|Connect to your server via FTP]], go to the [[root directory]] and download all files.
 
[[How to use FTP Client?|Connect to your server via FTP]], go to the [[root directory]] and download all files.
 +
== Download and install Visual Studio Community 2015 ==
 +
Go to https://www.visualstudio.com/products/free-developer-offers-vs, download Visual Studio Community and follow the installation wizzard. Once installed, run Visual Studio. A welcome page will prompt you to Sign in. Press  ''Not now, maybe later'' to continue.
  
 
== Run Titan locally ==
 
== Run Titan locally ==
Open Visual Studio, go to ''File → Open → Website'' and select all files downloaded in the previous step. Press ''ctrl + F5''. After a few seconds/minutes, your website should open in a browser.
+
Open Visual Studio, go to ''File → Open → Web Site...'' and select the folder with files downloaded in the previous step. Press ''ctrl + F5''. After a few seconds/minutes, your website should open in a browser.
  
 
== Troubleshooting ==
 
== Troubleshooting ==
If you followed previous steps correctly, the only reason for an error could be a wrong connection string. Open Web.config in the [[root directory]] and search for  
+
If you followed previous steps correctly, the only reason for an error would be a wrong connection string. Open Web.config in the [[root directory]] and search for the tag that starts with:
 
   <add name="ClientDbString"
 
   <add name="ClientDbString"
tag. If the connectionString attribute points to a localDB, log in to your account on  https://usetitan.com, go to ''Dashboard → Your Domains'' and copy your connection string from the CS column. Return to Web.config and replace connection string.
+
If the connectionString attribute points to a localDB, log into your account on  https://usetitan.com, go to ''Dashboard → Your Domains'' and copy your connection string from the CS column. Return to Web.config, replace connection string, press ''ctrl + s'' to save and ''ctrl + F5'' to run Titan Script again.

Revision as of 13:24, 13 June 2016

Download Titan Script files via FTP

Connect to your server via FTP, go to the root directory and download all files.

Download and install Visual Studio Community 2015

Go to https://www.visualstudio.com/products/free-developer-offers-vs, download Visual Studio Community and follow the installation wizzard. Once installed, run Visual Studio. A welcome page will prompt you to Sign in. Press Not now, maybe later to continue.

Run Titan locally

Open Visual Studio, go to File → Open → Web Site... and select the folder with files downloaded in the previous step. Press ctrl + F5. After a few seconds/minutes, your website should open in a browser.

Troubleshooting

If you followed previous steps correctly, the only reason for an error would be a wrong connection string. Open Web.config in the root directory and search for the tag that starts with:

 <add name="ClientDbString"

If the connectionString attribute points to a localDB, log into your account on https://usetitan.com, go to Dashboard → Your Domains and copy your connection string from the CS column. Return to Web.config, replace connection string, press ctrl + s to save and ctrl + F5 to run Titan Script again.