1

Closed

Deployment without installation

description

Hello,

I have some questions to deployment of Mr.CMS. How can I deploy it without installation? I would like do it so:
  1. I work in Visual Studio with MrCMS-Project with installed database and so on at first on my local machine.
  2. I set in project settings "Local IIS" (not "IIS Express" - so it works fine) and want to "publish" the CMS to folder and create a virtual directory in IIS
  3. I want to make settings for base URL in config file for database connection and for base URL in the database
Now if I try to work with "Local IIS" the project don't work because of cyclic redirection - I don't understand it.

Thanks a lot!
Best Regards,

PS: I like this Mr.CMS

file attachments

Closed Jan 7, 2015 at 1:25 PM by thought

comments

thought wrote Jan 7, 2015 at 12:57 PM

Mr CMS stores the connection string in App_Data -> Settings in a json format.

If this doesn't exist then Mr CMS will redirect to installation.

The way we deploy Mr CMS:

1 - Set up web deploy and deploy the files to web server. Make sure you uncheck "Delete all files before deployment box"
2 - Manually upload the App_Data folder
3 - Manually update the connection string to the correct live location

Future deployments will not delete files before deployment so this only ever has to be done on the first deployment. You can then happily use web-deploy moving forward.

Cheers,
Will

P.S I will close this as its not an issue - use the forum as more people will see it in future. Thanks for using Mr CMS - we like it too :)

argonix wrote Jan 8, 2015 at 1:43 PM

Hello Will,

thank you for your answer.

I use publish method "File System". Then I move all files to web Server. Then I start URL and get ERR_TOO_MANY_REDIRECTS. What I'm doing wrong?

Thanks,
Art

thought wrote Jan 8, 2015 at 1:59 PM

Have you uploaded your App_Data folder with the published files?

Have you updated your connection string?

Finally, make sure in the Sites database table the site URL is configured to the live URL. For example, if www.art.com is you domain make sure this is input in the field.

argonix wrote Jan 8, 2015 at 2:15 PM

I'm included App_Data to solution, so it published automatically, so:
  • Connection string is the same like in VS
  • "Sites database table the site URL": it is on my test-machine localhost/mrcms

argonix wrote Jan 8, 2015 at 2:29 PM

So is it im my project, the same i see on the server.

argonix wrote Jan 8, 2015 at 2:48 PM

Fiddler registered 21 call to http://localhost/mrcms, do you have any idea? HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Location: /MrCms/
Server: Microsoft-IIS/8.5
X-Built-With: Mr CMS - http://www.mrcms.com
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Thu, 08 Jan 2015 15:46:18 GMT
Content-Length: 124

argonix wrote Jan 8, 2015 at 2:51 PM

HTTP/1.1 302 Found
Cache-Control: private
Content-Type: text/html; charset=utf-8
Location: /MrCms/
Server: Microsoft-IIS/8.5
X-Built-With: Mr CMS - http://www.mrcms.com
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Thu, 08 Jan 2015 15:46:18 GMT
Content-Length: 124

__<html><head><title>Object moved</title></head><body>
<h2>Object moved to <a href="/MrCms/">here</a>.</h2> </body></html>__

thought wrote Jan 8, 2015 at 3:35 PM

Mr CMS needs to run as the route application. Try running under just localhost.

argonix wrote Jan 8, 2015 at 5:57 PM

Thank you very much, it works now :).