Chase Florell
Chase Florell

Reputation: 47437

How can I deploy an SQL database to AppHarbor from GitHub?

I've got working currently with , but the problem I'm running into is scripting my database schema (and test data) and having it deployed along with the rest of my project.

Have any of you done this before? How might I achieve this?

AppHarbor is already stripping out my dev connection string and replacing it with their own, but I'm not sure how to get my SQL DB to deploy automagically.

Upvotes: 3

Views: 751

Answers (2)

dgreenuk
dgreenuk

Reputation: 21

Have a look at Manatee by Rob Conery:

https://github.com/robconery/manatee

This handles db migrations.

Upvotes: 0

friism
friism

Reputation: 19279

At AppHarbor, we use NHibernate SchemaUpdate. You can see it in action on this PostgreSQL-compatible sample and it should work just as well with SQL Server. The trick is to do it in Application_Start (and not during a build, which may fail).

If you're using Entity Framework, you should be able to achieve the same effect with the new Migrations feature.

Upvotes: 3

Related Questions