Alan McCloud
Alan McCloud

Reputation: 641

Liquibase Grails database migrations

I followed the excellent tutorial on http://www.jakusys.de/blog/2008/09/grails-and-liquibase-how-to-use/

in regard to my dev database on local machine where grails is installed. All went well.

Now I want to deploy grails war to remote website where I setup mysql on remote server.

But I am at loss now. How do I apply the command: grails migrate

so that the now the remote database has the DATABASECHANGELOG table.

In the database there is some production data that I will manually copy from my local mysql to fresh install of remote mysql database while most of other tables are fresh and have no data. I am waiting for reply to this question to make sure I don't mess up something before actually launch my grails application on remote production server.

Upvotes: 2

Views: 1005

Answers (1)

Victor Sergienko
Victor Sergienko

Reputation: 13475

You can migrate a remote DB from your computer, using grails.env variable, like:

grails migrate -Dgrails.env=production

Upvotes: 2

Related Questions