Replies: 3 comments 2 replies
-
I've fixed #10. I somehow missed that. Thank you for the detailed feedback! I will review, validate and see what I can improve in the next couple of days |
Beta Was this translation helpful? Give feedback.
-
Installation (1, 2, 5, 10, 13)In the repository at https://github.com/econumo/econumo-ce
API detailsI updated the API documentation at https://econumo.com/docs/api/
Onboarding bug (7)It is a bug, I will fix it in the next release. Multi-currencyI updated the documentation at https://econumo.com/docs/self-hosting/multi-currency/ and made significant changes to the README in the repository at https://github.com/econumo/currency-loader, trying to answer your questions. Please, have a look. Answering your other questions: In short, you don't need to use (UPDATE) I now see a 500 response when updating the currency list. I will fix it! Regarding the creation of a separate script to update it:
These commits provide more context: By exposing an API, you avoid dependency on infrastructure limitations or vendors. I used GitHub Actions (https://github.com/econumo/currency-loader/blob/master/.github/workflows/daily-update.yml) to update my Econumo instance for a while, but later I switched to a different hosting service and began using cron jobs. @gboudreau I hope I answered all questions! Thank you for your contribution! Let me know If I can fix/improve/clarify something else |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
On this page: https://econumo.com/docs/self-hosting/multi-currency/
The link for the repo is the same as the link to the releases.
In the sample .env @ https://github.com/econumo/econumo-ce/blob/main/.env.example
Having the
OPEN_EXCHANGE_RATES_*
values makes me think the docker container will use those values, but it won't, right? I need to set up thecurrency-loader
separately?Maybe remove those values from .env.example in that repo; they are in the file found in the
currency-loader
repo.It would be easier to set up the
currency-loader
if it was a docker image too.The readme of
currency-loader
is sparse on details on how and when it should run, the first time or regularly (daily I guess?) My guess is that it should be run without arguments first (or when I add currencies), and then, every day, run it with--date
with yesterday's date?When I try to generate a new JWT key by running
bin/console lexik:jwt:generate-keypair --overwrite
, I get an error:Checking the automatically-created
jwt
folder, I see it is owner byroot:root
:But if I wait 30-40s after the container was started, then the folder's ownership changes, and then it works as expected.
It seems to take more than 1 minute on my system, between the time I start the container, and the time
docker-composer logs
shows anything.Maybe mention that, in your instructions about running this command.
And/or maybe you could output (in docker logs) as soon as the container starts, asking the user to wait until one sees
nginx entered RUNNING state
How can I find the value to use as*update: I saw, looking in the backend code, that I need to defineECONUMO_SYSTEM_API_KEY
, in thecurrency-loader
config? I didn't find anything about this here or in the Swagger doc.ECONUMO_SYSTEM_API_KEY
in both the econumo container and incurrency-loader
to the same value.In the onboarding guide, the
Connect with your partner
section should probably be hidden, for self-hosted instances, right? It saysplease visit [Settings](https://econumo.home.patati.ca/#/settings) -> .
, which I guess is broken because the page it is trying to direct me too doesn't exist in the self-hosted version.Wouldn't it make more sense for the
currency-loader
to be coded in PHP in the backend, instead of using a separate tool? Just ask for the open exchange rates config values (API key, currencies, base) in the .env of the docker container, and document how we should set up a cron job to call a specific URL, which would use those values to fetch from OER, and insert directly in the DB without having to use the API.When documenting what we need to put in
OPEN_EXCHANGE_RATES_TOKEN
, you sayyour Open Exchange Rates API key
, but OER never calls it that. It's called an App ID on their side of things.Your
docker-compose
indicates we should mount a db volume in/var/www/db
, but the DB is in fact in/var/www/var/db
.currency-loader
can send the currencies I defined to econumo, but it fails to load rates:If I try the URL manually, I can see why:
120 USD a year is way more than I am willing to pay for this. I'll just use
ECONUMO_CURRENCY_BASE=USD
incurrency-loader
, and change the main.go code to create a JSON sent to the above endpoint withrate = 1/rate
.POST /system/import-currency-rates
, the server returns a 500 error, when trying to save values that have already been sent:I think it would be better to allow this endpoint to overwrite an existing value. Maybe it does, and this error just occurs because I am sending exactly the same value..?
When the server returns a 500 error, there is no log I can look into to understand what is happening. I would guess that this is because I have
APP_ENV=prod
in my.env
, as suggested? Maybe document how to see full stack for exceptions/error, in your.env.example
?When I tried to change the base currency:
I then had to run
currency-loader
, then logout and re-login for the UI to allow me to choose CAD in the settings.More later, as I find other things.
Beta Was this translation helpful? Give feedback.
All reactions