Production scripts being overwritten

Hello

We have a problem where our gateway event scripts from DEV and PROD are overwriting each other and causing double the work. When we push to production, we export the published from DEV and import into PROD. Our DEV and PROD environment uses the same set of tags for both environment, so we only need to modify them through script once.

Issues:

  1. We tried commenting out the PROD gateway scripts but they get overwritten every push to PROD
  2. We are planning on creating a separate project just for gateway event scripts, but would like to fix the current environments instead of creating unnecessary work since the system was designed to do something like this.
  3. The global scripts don’t seem to match in DEV and PROD. We assumed they would be the exact same. This can probably ignored because I think the team might have forgotten to publish

Are you letting your development environment connect to your live devices and production database?

Don’t do that. Set up a duplicate database for development. Set up duplicate real devices (possibly one at a time). And/or set up emulated devices that your dev Ignition can connect to.

Also, gateway scripts ignore published status. Published is only a UI feature (and gone from v8+.)

2 Likes