Page 1 of 1

Environments - setup - Not working

Posted: Wed Mar 12, 2014 12:14 am
by Skychan
I think I've got a solid understanding of how to make use of the different
[specific-environment]-shared.properties
files in order to change runtime.environment variable (in admin and site build.xml files) to be able to switch between environments.

So I simply copied the contents of
development-shared.properties file to staging-shared.properties
admin/.../development.properties to staging.properties
site/.../development.properties to staging.properties

And then changed runtime.environment in admin/site build.xml files from "development" to "staging".

I run jetty-demo and it gives tons of errors like:

Code: Select all

[ERROR] 22:50:47 SchemaExport - HHH000389: Unsuccessful: alter table BLC_ADDITIONAL_OFFER_INFO drop constraint FK3BFDBD63B5D9C34D



Why the SQL alter table errors?

Re: Environments - setup - Not working

Posted: Sun Mar 23, 2014 7:14 pm
by phillipuniverse
This is an unfortunate cause of using the 'create' DDL with Hiberate. What actually happens is Hibernate attempts to drop all of the tables in the database and then recreate it on startup. When you first run it, however, there aren't any tables there and thus Hibernate gives error messages.

This should be safe to ignore but we're addressing it in this issue: https://github.com/BroadleafCommerce/Br ... issues/781.