appharbor连接字符串 [英] appharbor connection string

查看:123
本文介绍了appharbor连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建设需要访问数据库中的ASP.NET应用程序MVC3。我已经成功地建立了数据库,我的本地机器上,一切工作正常,但后来我上载的应用appharbor.com进行测试,现在我再也不能访问数据库。

I'm building an ASP.NET MVC3 application that requires access to a database. I've successfully set up the database on my local machine and everything works fine but then I uploaded the app to appharbor.com for testing and now I can't access the database anymore.

你如何添加一个连接字符串上appharbor.com一个SQLEX $ P $干燥综合征数据库?数据库文件是在位于App_Data文件夹。我一直在试图为天,使其无果工作。我已经添加了SQL Server的附加上appharbor。我没有使用任何实体框架的功能,如果它有助于了解。

How do you add a connection string for a SQLEXPRESS database on appharbor.com? The database file is in located in the App_Data folder. I've been trying for days to make it work without avail. I already added the SQL Server add-on on appharbor. I'm not using any Entity Framework features if it helps to know.

推荐答案

在AppHarbor运行时,你不应该使用应用程序的嵌入式SQL服务器前preSS数据库。每当一个新的应用程序版本部署,任何文件系统的状态丢失,你会失去你的数据库进行任何更改。要了解如何使用Sequelizer附加本指南:的http://支持.appharbor.com / KB /插件/使用-sequelizer

You shouldn't use application-embedded SQL Server express databases when running on AppHarbor. Whenever a new application version is deployed, any filesystem state is lost and you'll loose any changes to your database. Check out this guide on how to use the Sequelizer add-on: http://support.appharbor.com/kb/add-ons/using-sequelizer

这篇关于appharbor连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆