quintel / etengine

Calculation engine for the Energy Transition Model
https://energytransitionmodel.com/
MIT License
14 stars 7 forks source link

start etengine with: bundle exec rails server #1350

Closed nick-gorman closed 11 months ago

nick-gorman commented 12 months ago

Hi quintel team!

Trying to get the etm running locally (both engine and model).

However, I'm running into an issue. When I run the etmodel in docker I get the prompt in the screenshot below.

image

While I can start the etengine locally using docker-compose run, I can't figure out how to start it with the command "bundle exec rails server", any guidance on this would be much appreciated.

Cheers, Nick

noracato commented 12 months ago

Hi Nick!

Happy to see you're trying to use our model locally!

The engine can be run both via Docker (docker-compose up) or directly (bundle exec rails s). For internal development we use the latter, that's probably why these instructions are referring to that one. However, for instruction 1 from your screenshot it doesn't matter how you run the engine, as long as it is running.

When it's running you should be able to proceed to the next steps. Signing in to the engine requires the account generated for you when you set up the database (in step 3).

If you're interested, this part of the readme specifies how you can run the engine directly on mac and linux machines.

Cheers, Nora

nick-gorman commented 11 months ago

Thanks @noracato think that resolves my question :)