1
0
Fork 0
forked from OpenNeo/impress
impress/config/initializers/impress_2020.rb
Emi Matchu 6763e9454e Optionally use local instance of impress-2020 during development
To activate this, I created a `.env.development` file in my project
root, with the following content:

```env
IMPRESS_2020_ORIGIN=http://localhost:4000
```

Then, I started impress-2020 with `yarn dev --port=4000`.

Now, the app loads from there, hooray!! It even fixes that obnoxious
pet state ID bug that happens when you run against the production db lol
2024-01-28 07:00:29 -08:00

2 lines
108 B
Ruby

Rails.configuration.impress_2020_origin =
ENV["IMPRESS_2020_ORIGIN"] || "https://impress-2020.openneo.net"