Hi Paul, This is a great series of videos, they are really helping me get back into Umbraco. The last time I did any real work with it was 8 years ago and I'm pretty sure it was at version 3. There is one thing I do differently though that some people may find helpful. For any sensitive information like connection strings or email server usernames and passwords I create a .config file and read it from my web.config. This is then excluded from source control, especially useful if you use a public Git repository. Keep up the good work.
+Thomas Heaney Hi Thomas I do this too. I didn't show it much on my video as I don't want you to see my passwords and connections strings etc Glad you like the videos
So, this is just the UI portion of the Umbraco website. How do you manage the content for this site if the Umbraco Backoffice doesn't exist on this server or is it accessible?
When I do this, my App_Data/models is empty only the foo flag is still there. Also I dont get my content on the website. I get the starter website thing. Do you know what causes this?
I’m sorry I don’t know. Try posting it on the our Umbraco forum. You can add code snippets and more detail to get help from thousands of Umbraco developers there.
Hi Paul, can we deploy content website and admin panel website separately in different domains??, the thing is our website doesn't have direct access to Db server, the Db is accessed only by endpoint API's, So can we link it together ? , or should we maintain separate Db for Umbraco
Hi Paul, I'm trying to deploy an umbraco 7.10.4 but i'm getting this error "Error : Copying file bin\Antlr3.Runtime.pdb to obj\Release\Package\PackageTmp\bin\Antlr3.Runtime.pdb failed. Could not find file 'bin\Antlr3.Runtime.pdb'.". What could be the issue? Thanks in advance.
@@CodeSharePaul Yes, I included the bin folder but this file wasn't existing Antlr3.Runtime.pdb. So i removed it and it worked like a charm!!! Thanks with this guide.
Hi Paul, Brilliant videos, good to see relevant content regarding Umbraco, I have just recently started learning how to develop with Umbraco and I love it!!, have you got any plans to make a video showing how to deploy Umbraco on Azure or a live environment by any chance?
Hi +Alexis Perez Sosa I'm glad you like the videos. I haven't deployed any umbraco sites to Azure before so I won't be making a video about it. If that changes I'll let you know.
Hey Paul, first of all thanks for the videos. I've been following the "bootstrap static site to umbraco cms" serie and I've learnt a lot. Next step for me is to follow SE02 serie, but in some videos I heard from you advices for new content. Here is mine: an ecommerce with products, categories and subcategories. Sounds good? Thanks a lot and keep pushing
Hi Albert. Thanks for letting me know you're enjoying my videos I appreciate it. Thanks for the ideas. I'll add them the my trellis board and if I get the time and inspiration I might do a video or two on them.
Thanks Paul, I know it's difficult to find time, because to make a video is time consuming. And yes, I enjoyed your videos a lot because I was planning to begin using Umbraco and your videos have been the best starting point.
Hi Paul, Is it possible to create new folders for models and controllers when you want to make changes to an existing Umbraco website? since on deployment these folders are no longer available. Or we need all raw files to make any changes?
Hi @@CodeSharePaul, so do you have any suggestions? I tried to do route hijacking but seems not to work for me. So you mean i can put my custom controllers and models inside app_code?
Do you have a video or advice on how to deploy on-prem Umbraco CMS 8 (MS SQL CE) to a dev web server? Surely documentation exists regarding deployment, right? Could you please pass along a link to such information?
Hi Kevin, I don’t have a video on that but I do have one on v7. It used SQL Server not CE but CE should be easier. The main thing is to make sure you have .NET 4.7.2 installed on the server. Also CE is quite a bit slower. I would advise that you install SQL express which is also free. That’s what I use for codeshare.co.uk. There is also a post on my site which shows you how to convert from CE to SQL Server db
Here is a link to the docs about server setup. In the list is a link to the folder permissions docs I was referring to. our.umbraco.com/Documentation/Getting-Started/Setup/Server-Setup/
Hi Paul, Thanks again for another relevant tutorial! I have a VPS and I'm using your example... However I have a few questions: I'm using the Fanoe website to try some things and I chose to use the local/built-in database (DataDirectory - Umbraco.sdf - SqlServerCe.4.0). (I note that it is not included i the project) So, question 1) Is using the local/directory sqlserverCe still a valid way of running the website on my VPS? 2) The "Umbraco" and "Umbraco_Client" directories I noticed were not included in the project but I see that they show up in the finished UAT directory?? Should I include them? Thank you for doing these tutorials! Best wishes, Daniel
Hi +Daniel Gillett You are welcome I'm glad you've found them useful. Here are the answers to your questions: 1) The .sdf file is in your App_Data folder. It is still a valid way to run your site, although you might notice performance issues. If you do you can convert it to a full SQL database. Have a look for a blog post on my site for how to do that. 2) No you don't need to include those folders, they get output by default anyway.
Thanks very much +Paul! I had to go back and include the .sdf file in the app_data folder and then it all worked! BTW I'm really finding your tutorials useful. I actually started way back with Umbraco 4.7 but I've not been able to stick with it consistently because of work, kids, etc. I'm trying really hard now to stick with it though. So a very big "thank you" for showing how you do these various tasks. You are saving me a lot of time and frustration!
Hi Paul! Great video! But i did notice something, when you published the site, the map "controllers" and "models" dident end up in the final version why is that?
Paul Seal oh sorry i meant folder, when the project is published, the folders "controllers" and "models" isent there, but they are before you did a publish, why is that? dont they also need to be on the server?
I understand what you are asking now. No they don't need to be there when you publish. They get compiled down into a dll file for the site, it is in the bin folder.
Hi Paul, I was interested on watching that video about Azure but when following the link to twitch, that video is no longer available any other place I could watch it? cheers
Hey Paul, I tried your approach. Any idea why would my deployed version not render the templates? skensberg.gear.host/ I'm getting an error "No physical template file was found for template Home". I checked and made sure that file permissions are all there, but something is still missing. Thanks alot!
Hi, it is most likely that you haven't deployed the files from the views folder. You need to make sure you right click on them and include them in Visual Studio.
Hi Paul! Me again! lol I have run into - not a problem - but an "unexplainable - web.config transform issue. When I'm updating my UAT web.config file and when I go to check the preview, it doesn't include some of what I've added. I don't get an error, it just doesn't include it. I'll try and explain my setup a little... I'm running a VPS and using IIS to run my static websites. For one of my websites, I have multiple domain variations - and I also want my domain to always resolve with the www. prefix - to ensure that any of the domain name variations always resolve to my "main" www.mydomain.com. So I installed and happily used the "URL Rewrite" module that you can get for IIS. And All I had to do was drop a web.config file containing the rules into the root directory and the server would pick up the settings and change accordingly. But for some reason, they don't seem to be getting picked up by the transition config file. Here is a copy & paste example of my UAT that I'm trying to add into the transition. The first part is from your tutorial - the X-Robots-Tag. The second is what I've added under it. (I've changed my domain name and removed a lot of the other domain names to keep it simple):
...I should also say that I can manually add this bit into the web.config file of the Umbraco site that I just uploaded and it works fine. ...It's just the transition from VS that I can't understand why it wouldn't add it to the UAT or LIVE transition files. and I'm not sure, but I don't think it's interferring with Umbraco's built in URL Redirect. Thank you again for looking at this and I hope you can help! Many thanks! Daniel
Hi Paul, Thanks for the link. I went in to the config file to test your suggestion. but when I opened the file, I saw that Umbraco will be removing the Url Rewrite and they are suggesting that people use the IIS Url Rewrite which is what I have.
...I suppose it isn't an umbraco issue and perhaps is a Visual Studio issue. I just thought it was strange that the transition wouldn't copy my rewrite rules over; so I'll have to do it manually. Thanks again for your time. Daniel
Hi Paul, I am not using any connection in my code. I am just fetching records from API. In my local it works fine but when i deploy it on Server i am getting error of COnnection string. Can you help me in Solving this error?
+Sourav Pal you must be connecting to the database to get records. If you are using Umbraco it needs a database. Make sure your connection string is correct. Use a web config transform.
Yes, I got the error.Here i had not include the umbraco.sdf file while publishing due to which it was giving error. Now it has resolved the error. Thanks for your help
Hello Paul, your tutorials a more than helpful and insightful. I don't have a lot of experience with servers but I followed your process here and everything worked. Nevertheless i got stuck sorting out the domain, nameservers, DNS settings. This is something that is not well documented in general (or maybe i am not searching the correct keywords). I had to ask for help from eukhost support center. I have a few questions: 1) How can i add 'uat.' in front of my website? do i have to buy a new domain? 2) Is there a way to have something like this: 'www.mywebsite.com/uat/'? I don't know if this is feasible though with the redirections and whatsoever. Maybe you have some useful tips about these or maybe direct me to some tutorials or posts? Looking forward to your reply. Thanks.
Hi If you want to use uat.mysite.com you need to go into the DNS settings for the domain you bought and you need to add a CNAME for UAT and point it to the IP address of you server
Hi @@CodeSharePaul , i finally got it going. I've spent a few more hours and got my head around it. For anyone that stumbled on the same thing: > Need to open the 'DNS Manager' > expand your server > expand 'Forward Lookup Zones' > add a 'New domain', that will be you 'uat' or 'staging' part of your 'uat.mywebsite.com' url > inside the new domain folder add two new 'A' host fields a) leave the host field empty, FQDN your 'uat.mywebsite.com' and the ip address of your server b) www, FQDN, ip address of your server Make sure that your iis bindings are already set with this new urls
Hi Paul,
This is a great series of videos, they are really helping me get back into Umbraco. The last time I did any real work with it was 8 years ago and I'm pretty sure it was at version 3.
There is one thing I do differently though that some people may find helpful. For any sensitive information like connection strings or email server usernames and passwords I create a .config file and read it from my web.config. This is then excluded from source control, especially useful if you use a public Git repository.
Keep up the good work.
+Thomas Heaney Hi Thomas
I do this too. I didn't show it much on my video as I don't want you to see my passwords and connections strings etc
Glad you like the videos
So, this is just the UI portion of the Umbraco website. How do you manage the content for this site if the Umbraco Backoffice doesn't exist on this server or is it accessible?
When I do this, my App_Data/models is empty only the foo flag is still there. Also I dont get my content on the website. I get the starter website thing. Do you know what causes this?
I’m sorry I don’t know. Try posting it on the our Umbraco forum. You can add code snippets and more detail to get help from thousands of Umbraco developers there.
Hi Paul,
can we deploy content website and admin panel website separately in different domains??,
the thing is our website doesn't have direct access to Db server, the Db is accessed only by endpoint API's,
So can we link it together ? , or should we maintain separate Db for Umbraco
Thanks for posting this. Great tutorial. My site is now up for UAT. A few of the steps were different for my server but all good.
Great stuff
Hi Paul, I'm trying to deploy an umbraco 7.10.4 but i'm getting this error "Error : Copying file bin\Antlr3.Runtime.pdb to obj\Release\Package\PackageTmp\bin\Antlr3.Runtime.pdb failed. Could not find file 'bin\Antlr3.Runtime.pdb'.". What could be the issue? Thanks in advance.
Hi
How are you deploying? Have you included your bin folder in the deployed site?
@@CodeSharePaul Yes, I included the bin folder but this file wasn't existing Antlr3.Runtime.pdb. So i removed it and it worked like a charm!!! Thanks with this guide.
Hi Paul,
Brilliant videos, good to see relevant content regarding Umbraco, I have just recently started learning how to develop with Umbraco and I love it!!, have you got any plans to make a video showing how to deploy Umbraco on Azure or a live environment by any chance?
Hi +Alexis Perez Sosa
I'm glad you like the videos. I haven't deployed any umbraco sites to Azure before so I won't be making a video about it. If that changes I'll let you know.
Hi Paul, can you do another tutorial on Umbraco Cloud?
Hey Paul, could you post a tutorial on how to set up CD/CI for an Umbraco site?
Hi. I’ve got this blog post on how to do it codeshare.co.uk/blog/how-to-set-up-continuous-deployment-for-mvc-and-umbraco-using-appveyor/
Hey Paul, first of all thanks for the videos. I've been following the "bootstrap static site to umbraco cms" serie and I've learnt a lot. Next step for me is to follow SE02 serie, but in some videos I heard from you advices for new content. Here is mine: an ecommerce with products, categories and subcategories. Sounds good? Thanks a lot and keep pushing
Hi Albert. Thanks for letting me know you're enjoying my videos I appreciate it. Thanks for the ideas. I'll add them the my trellis board and if I get the time and inspiration I might do a video or two on them.
Thanks Paul, I know it's difficult to find time, because to make a video is time consuming. And yes, I enjoyed your videos a lot because I was planning to begin using Umbraco and your videos have been the best starting point.
Hi Paul,
Is it possible to create new folders for models and controllers when you want to make changes to an existing Umbraco website? since on deployment these folders are no longer available. Or we need all raw files to make any changes?
If you want to make changes to an existing site without the rest of the source code you can put code in the app_code folder but it is not advised.
Hi @@CodeSharePaul, so do you have any suggestions? I tried to do route hijacking but seems not to work for me. So you mean i can put my custom controllers and models inside app_code?
Do you have a video or advice on how to deploy on-prem Umbraco CMS 8 (MS SQL CE) to a dev web server? Surely documentation exists regarding deployment, right? Could you please pass along a link to such information?
Hi Kevin, I don’t have a video on that but I do have one on v7. It used SQL Server not CE but CE should be easier. The main thing is to make sure you have .NET 4.7.2 installed on the server. Also CE is quite a bit slower. I would advise that you install SQL express which is also free. That’s what I use for codeshare.co.uk. There is also a post on my site which shows you how to convert from CE to SQL Server db
Thanks Paul! Perhaps my issues are more to do with the proper security settings for folders of my deployed project.
Kevin Johnson ah yes I’m sure there is a page of the documentation for that. I’ll just have a look
Thanks again, I’m having good success with Umbraco, providing the site stays on localhost. Deployment is proving to be quite challenging.
Here is a link to the docs about server setup. In the list is a link to the folder permissions docs I was referring to. our.umbraco.com/Documentation/Getting-Started/Setup/Server-Setup/
Hi Paul,
Thanks again for another relevant tutorial! I have a VPS and I'm using your example... However I have a few questions:
I'm using the Fanoe website to try some things and I chose to use the local/built-in database (DataDirectory - Umbraco.sdf - SqlServerCe.4.0). (I note that it is not included i the project) So, question 1) Is using the local/directory sqlserverCe still a valid way of running the website on my VPS?
2) The "Umbraco" and "Umbraco_Client" directories I noticed were not included in the project but I see that they show up in the finished UAT directory?? Should I include them?
Thank you for doing these tutorials!
Best wishes,
Daniel
Hi +Daniel Gillett
You are welcome I'm glad you've found them useful. Here are the answers to your questions:
1) The .sdf file is in your App_Data folder. It is still a valid way to run your site, although you might notice performance issues. If you do you can convert it to a full SQL database. Have a look for a blog post on my site for how to do that.
2) No you don't need to include those folders, they get output by default anyway.
Thanks very much +Paul! I had to go back and include the .sdf file in the app_data folder and then it all worked!
BTW I'm really finding your tutorials useful. I actually started way back with Umbraco 4.7 but I've not been able to stick with it consistently because of work, kids, etc. I'm trying really hard now to stick with it though. So a very big "thank you" for showing how you do these various tasks. You are saving me a lot of time and frustration!
Hi Paul! Great video! But i did notice something, when you published the site, the map "controllers" and "models" dident end up in the final version why is that?
Hi Nukebosss thanks. I'm not sure what you mean by the map "controllers" and "models" please explain
Paul Seal oh sorry i meant folder, when the project is published, the folders "controllers" and "models" isent there, but they are before you did a publish, why is that? dont they also need to be on the server?
I understand what you are asking now. No they don't need to be there when you publish. They get compiled down into a dll file for the site, it is in the bin folder.
Nice video. Hey Paul I was actually planning on publishing my umbraco test demo site to Azure. should I deploy it the same way as an MVC project?
eric aput I was playing with this today. Check out my video on twitch. www.twitch.tv/videos/143295588
Hi Paul, I was interested on watching that video about Azure but when following the link to twitch, that video is no longer available any other place I could watch it? cheers
Hey Paul, I tried your approach.
Any idea why would my deployed version not render the templates? skensberg.gear.host/
I'm getting an error "No physical template file was found for template Home". I checked and made sure that file permissions are all there, but something is still missing. Thanks alot!
Hi, it is most likely that you haven't deployed the files from the views folder. You need to make sure you right click on them and include them in Visual Studio.
Thanks so much! didn't see them until I clicked to show the hidden files. Strange that they're not included in the project by default! :P
You're welcome. It's because you created them in Umbraco rather than Visual Studio. So to it they are just files, which it ignores by default.
Hi Paul!
Me again! lol
I have run into - not a problem - but an "unexplainable - web.config transform issue. When I'm updating my UAT web.config file and when I go to check the preview, it doesn't include some of what I've added. I don't get an error, it just doesn't include it. I'll try and explain my setup a little...
I'm running a VPS and using IIS to run my static websites. For one of my websites, I have multiple domain variations - and I also want my domain to always resolve with the www. prefix - to ensure that any of the domain name variations always resolve to my "main" www.mydomain.com. So I installed and happily used the "URL Rewrite" module that you can get for IIS. And All I had to do was drop a web.config file containing the rules into the root directory and the server would pick up the settings and change accordingly. But for some reason, they don't seem to be getting picked up by the transition config file.
Here is a copy & paste example of my UAT that I'm trying to add into the transition. The first part is from your tutorial - the X-Robots-Tag. The second is what I've added under it. (I've changed my domain name and removed a lot of the other domain names to keep it simple):
...I should also say that I can manually add this bit into the web.config file of the Umbraco site that I just uploaded and it works fine. ...It's just the transition from VS that I can't understand why it wouldn't add it to the UAT or LIVE transition files. and I'm not sure, but I don't think it's interferring with Umbraco's built in URL Redirect.
Thank you again for looking at this and I hope you can help!
Many thanks!
Daniel
+Daniel Gillett Hi Daniel
Try following this post. www.codeshare.co.uk/blog/how-to-create-url-rewrite-rules-in-umbraco/
Hi Paul,
Thanks for the link. I went in to the config file to test your suggestion. but when I opened the file, I saw that Umbraco will be removing the Url Rewrite and they are suggesting that people use the IIS Url Rewrite which is what I have.
...I suppose it isn't an umbraco issue and perhaps is a Visual Studio issue. I just thought it was strange that the transition wouldn't copy my rewrite rules over; so I'll have to do it manually.
Thanks again for your time.
Daniel
umbraco's publish thing doesn't generate index file how to get that
Are you talking about index.html?
@@CodeSharePaul Yes
Umbraco runs on ASP.NET MVC so it doesn’t generate static HTML.
Then how can i host it to a noraml server which is non IIS. Usually server looks for index.html file first.
santosh nayak you can’t. It needs to be hosted on a Windows server with IIS
Hi Paul,
I am not using any connection in my code. I am just fetching records from API. In my local it works fine but when i deploy it on Server i am getting error of COnnection string. Can you help me in Solving this error?
+Sourav Pal you must be connecting to the database to get records. If you are using Umbraco it needs a database. Make sure your connection string is correct. Use a web config transform.
Yes, I got the error.Here i had not include the umbraco.sdf file while publishing due to which it was giving error. Now it has resolved the error. Thanks for your help
Hey Paul
Very usefull and great tutorial !
Thanks Thomas
paul is this works for 4.11.10 version ?
I’m sorry I don’t know. I’ve never used v4
Hello Paul, your tutorials a more than helpful and insightful.
I don't have a lot of experience with servers but I followed your process here and everything worked.
Nevertheless i got stuck sorting out the domain, nameservers, DNS settings. This is something that is not well documented in general (or maybe i am not searching the correct keywords). I had to ask for help from eukhost support center.
I have a few questions:
1) How can i add 'uat.' in front of my website? do i have to buy a new domain?
2) Is there a way to have something like this: 'www.mywebsite.com/uat/'? I don't know if this is feasible though with the redirections and whatsoever.
Maybe you have some useful tips about these or maybe direct me to some tutorials or posts?
Looking forward to your reply.
Thanks.
Hi
If you want to use uat.mysite.com you need to go into the DNS settings for the domain you bought and you need to add a CNAME for UAT and point it to the IP address of you server
Hi @@CodeSharePaul , i finally got it going. I've spent a few more hours and got my head around it.
For anyone that stumbled on the same thing:
> Need to open the 'DNS Manager'
> expand your server > expand 'Forward Lookup Zones'
> add a 'New domain', that will be you 'uat' or 'staging' part of your 'uat.mywebsite.com' url
> inside the new domain folder add two new 'A' host fields
a) leave the host field empty, FQDN your 'uat.mywebsite.com' and the ip address of your server
b) www, FQDN, ip address of your server
Make sure that your iis bindings are already set with this new urls
Thanks for that video !
You’re welcome