Packaging And Deployment??

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.
10/17/2011 1:36:23 PM
Gravatar
Total Posts 21

Packaging And Deployment??

I've read the documentation regarding packaging and deploying, but I'm still confused. First it sounds like I'm supposed to upload files to production:

"clean up extra files from your development environment that should not be uploaded to production"

But then it sounds like I'm supposed to be developing on our production web server?

"I recommend that you always create and edit data on the production server and never try top push data from a development or staging machine up to production. ...you get a backup from production and restore it in your development or staging environment."

Am I supposed to publish, then deploy (move to production) just .DLL files, the entire release version of the solution, or am I supposed to document all the code changes made in my dev environment, then replicate the processes on our production server?

 

Totally confused, any help is appreciated. Thanks!

10/17/2011 1:50:50 PM
Gravatar
Total Posts 18439

Re: Packaging And Deployment??

deployment is about the code getting compiled and deploying the updated software, it is not about the content in the database.

I do not recommend developing on production. Creating and editing site data is done from the UI it is not a development task.

The production database is the authoritative copy of the database so when you want to do local development you should get a copy of the production database and use it on your local machine but in general you should not copy the database from development environment back to production. Some people do create content locally when they are first creating a site and then they move it to production and restore the db from their dev environment to production but I don't really recommend that approach and don't usually work that way myself. You could get away with it for a new site but once users start using your site and data is coming in from the production side, ie users register on the site, post in the forums, make comments on your blog posts or purchase products from webstore. Once any data like that comes into the site from production then you can no longer restore a db from dev to production without losing the data that was in production. But you can always deploy newer builds of the software to production, and that is what packaging and deployment is about.

packaging and deploying locally to a folder is designed to get a package of just the needed files, dlls, .aspx, ,ascx and most other files but not .cs source code files and not junk files from your dev environment, not the user.config from your dev environment. It is basically the same process I go through in packaging the official releases. It produces a package that can be used for upgrading or for a new installation. After deploying the updated files to production or staging or any other environment you would visit the /Setup/default.aspx page to run any upgrade scripts.

Hope that helps,

Joe

10/17/2011 2:14:07 PM
Gravatar
Total Posts 21

Re: Packaging And Deployment??

YES. Huge help and it makes total sense. Thanks a lot.

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