创建开发和生产环境?

发布于 2024-09-04 01:50:30 字数 318 浏览 1 评论 0原文

目前我发布的所有应用程序始终在生产环境中发布。不过我希望改变这一点,并且还有一个开发方面(用于测试)。

我尝试搜索有关如何创建开发服务器的步骤,但我似乎找不到教程。

过去,我见过有人通过将其置于“调试”选项来发布其开发中的应用程序,并通过将其置于“发布”选项来将其发布到生产环境中。 (对于我的含糊之处表示歉意,因为自从我看到它以来已经很久了)。

但无论如何,对于我的问题,有人可以告诉我为我的项目创建生产和开发环境的一般步骤吗?我目前正在 VB (Microsoft Visual Studio 2008) 上使用 winform 应用程序,

感谢您的帮助

currently all my application that is released is always release in production. However I would like that changed and also have a development side (For testing).

I've tried searching for steps on how to create a development server however I cannot seem to find a tutorial.

In the past I've seen someone release their application in development by having it in on "Debug" option and have it released in production by having it on the "release" option. (I apologize for the vagueness as it was along time ago since I saw it).

But anyways to my question, can someone tell me the general steps for creating a production and development environment for my project? I'm currently using winform application on VB (Microsoft visual Studio 2008)

Thanks for the help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

望笑 2024-09-11 01:50:30

您的开发环境应该是生产环境的精确副本。通常,这意味着购买一套重复的硬件,复制生产磁盘,然后在本地开发/测试局域网上运行它。从那里,您可以设置 Visual Studio 来执行一些不同的操作:

1) build >配置管理器>> debug(或可选的构建菜单栏)以便能够使用 IDE 调试应用程序

2) 设置对新开发/测试服务器的远程调试 - 项目 >属性>调试>将本地 Windows 调试器更改为远程 Windows 调试器并填写空白。您还需要在开发或测试服务器上安装 msvsmon

3) 将程序集复制到远程盒子 - 手动执行此操作,或者 - 项目 >属性>构建事件>构建后事件>添加几个命令行副本以将 exe 和 dll 传输到映射服务器。不要忘记使用环境变量和宏来让您的生活更轻松。

4) 最后按播放键,就像您以前在 IDE 中所做的那样,您应该看到应用程序在远程盒子上启动。

Your development environment should be an exact copy of your production environment. Typically this means buying a duplicate set of hardware, duplicating a production disk, and running that on your local dev/test lan. From there, you can set visual studio up to do a few different things:

1) build > configuration manager > debug (or optionally the build menu bar) to be able to debug your application with your IDE

2) set up remote debugging to your new dev / test server - project > properties > debugging > change local windows debugger to remote windows debugger and fill out the blanks. You will also need to install msvsmon on the dev or test server.

3) copy your assemblies to the remote box - do this manually, OR - project > properties > build events > post build events > add a couple command line copies to get your exe and dlls over to your mapped server. Don't forget to use environment variables and macros to make your life easier.

4) finally press play like you probably used to do in the IDE, and you should see the application fire up on the remote box.

只是一片海 2024-09-11 01:50:30

我不确定我完全理解你的问题,但我相信,如果你试图构建一个测试/登台服务器来在发布之前测试你的软件,那么这应该是你的生产服务器的精确副本(如果可能)(这使您可以消除任何特定于环境的错误)。

I'm not sure I entirely understand your question, but I believe that if you are trying to build a testing/staging server for testing your software prior to release, then this should be an exact copy (if possible) of your production server (this allows you to iron out any environment specific bugs).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文