Open MC0R3 opened 1 year ago
It seems that the workdir is not set properly . You set app/eventwatcher
as workdir but somehow locales are looked up in app/static
And you added some personal folder into the yml EventWatcher
, use relative paths instead
Using the command without docker also gives me the same error though, that's why I thought there was a small bug regarding the German file. Also tried setting a path in docker-compose to copy the files over but the names aren't formatted properly in Discord; probably because that one files seems to be missing from the filestructure
Some screenshots for reference: Server: https://capture.dropbox.com/eW55k7A3ilupW3RT Discord: https://capture.dropbox.com/WO9Hl4j4TIAAPrry
Just so I can be complete as I can be:
Running npm run create-locales
on local: https://capture.dropbox.com/c7UKmz5SwzQ9XQvm
Running npm run create-locales
with docker-compose: textlog
Both configurations have the issue that the names of the Pokémon are formatted as poke####_
My locale in config.json is set to en (thought I also add this part of the info)
Last post for today (I swear 🙈 ). I dived into the docker-container to check out the file formatting and came up with the following:
root@v2202111159943167776:~/Tools# docker exec 2351d7724bb5 ls /app/
Dockerfile
README.md
dist
examples
node_modules
package-lock.json
package.json
src
static
tsconfig.json
root@v2202111159943167776:~/Tools# docker exec 2351d7724bb5 ls /app/static/
locales
root@v2202111159943167776:~/Tools# docker exec 2351d7724bb5 ls /app/static/locales
_de.json
_en.json
_es.json
fr.json
it.json
ja.json
ko.json
pl.json
pt-br.json
ru.json
sv.json
th.json
tr.json
zh-tw.json
root@v2202111159943167776:~/Tools#
Looking at creating-locales.js; it seems that the german file should be coming along from another repo but for some reason doesn't (checked the other repo too, the file is there obviously). Looks like something is stopping the script from fetching that specific file.
Updated Dockerfile & docker-compose.example.yml as well as README.md
Problem persists with catching locales for en.json & de.json as described in #22
Once that is fixed, merge should be okay 😄 (obviously I'll test 😅)
I managed to get it worked by copying the files in static/locales/
and removing the underscore. From that point one, the npm run create-locales
didn't error anymore. Up and running in Docker now 🥳
Also #18 can be closed as of now :)
Hi there,
Finally got GitHub sorted out on my local machine 😅.
Anyway, I've created a docker-compose.yml file as well as the Dockerfile. Running
npm run create-locales
does currently display an error:I got this local and on my server; the file just isn't being created when running the command. Maybe a small bug that needs a little attention? :)