Publishing mojoportal code to azure cloud service can not deploy "sites" folder

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
6/5/2014 9:00:07 AM
Gravatar
Total Posts 12

Publishing mojoportal code to azure cloud service can not deploy "sites" folder

Hi,

I have created cloud service and added webrole(mojoportal.web) in it.

While Publishing the code to azure it will publish all the folders excluding the "sites" and its sub folders (i.e.[~/Data/Sites/[siteid]] folder.

We want all the folders and files to be deploy on the server.

Will you please let me know how to do this and what we missed?

Thanks,

Rohit Jagtap.

 

6/5/2014 9:17:02 AM
Gravatar
Total Posts 18439

Re: Publishing mojoportal code to azure cloud service can not deploy "sites" folder

Right, that is by design. With Visual Studio we want to publish the software, not the site content from our dev machine, not the user.config from our dev machine etc. So we have filtering in our .csproj files to leave out such things that we don't normally want in our package of software.

Publishing to Azure is kind of a different animal than producing a software package which is what we normally do. Publishing to Azure is publishing site content and software updates together in some cases.

However, there are numerous ways to publish to Azure instead of directly from VS, you can use git, dropbox etc, so my suggestion is deploy from VS to a local folder and then deploy any additional files you want to the same folder manually so you have a local set of files exactly what you want to publish, then publish to Azure a different way, ie git, dropbox etc.

Hope that helps,

Joe

6/6/2014 12:23:13 AM
Gravatar
Total Posts 12

Re: Publishing mojoportal code to azure cloud service can not deploy "sites" folder

Thanks Joe for quick reply.

Will you please tell us, is it possible to add that [sites] folder and config files by making changes in .csproj file.

If yes, then will you please let us know, how to do this?

Thanks,

Rohit Jagtap

6/6/2014 11:31:31 AM
Gravatar
Total Posts 18439

Re: Publishing mojoportal code to azure cloud service can not deploy "sites" folder

I don't recommend modifying our .csproj files, I really think the suggestion I already gave you is a much better way to do it.

If you don't want to follow my good advice then open the Web/mojoPortal.Web.csproj file with a text editor, you will see it is just xml and there is a section for each build profile with settings like 

<ExcludeFoldersFromDeployment>
and
<ExcludeFilesFromDeployment>

 

6/9/2014 7:27:25 AM
Gravatar
Total Posts 12

Re: Publishing mojoportal code to azure cloud service can not deploy "sites" folder

We have done publishing the code and  manually add the required folder in it. 

But we are using azure cloud service and webrole, to add webrole project we need mojoportal web project file, which is also excluded from the published code. so how we can publish code to azure?

You suggested link for 'publish to Azure a different way, ie git, dropbox etc.' which support for azure website but we are using azure cloud service. so will you please let us know the feasible solutions?

Thanks.

 

You must sign in to post in the forums. This thread is closed to new posts.