azerothcore / acore-docker

docker-compose example to run an azerothcore platform
https://www.azerothcore.org/acore-docker/
GNU Affero General Public License v3.0
211 stars 80 forks source link

Scripts not loading #40

Open sebyx07 opened 6 months ago

sebyx07 commented 6 months ago

Hey, I'm able to start, run and connect to the server, but now I want to customize it and I've added to

scripts/typescript/index.ts the content from scripts/typescript/examples/example.ts

i've also attached to the container with

docker attach acore-docker-ac-worldserver-1 and run reload eluna

but nothing happens

I've also restarted the containers with docker-compose down and up again

michaeldelago commented 6 months ago

Can you try adding this section to docker-compose.override.yaml:


services:
  ac-worldserver:
    environment:
      AC_ELUNA_SCRIPT_PATH: "/azerothcore/env/dist/bin/lua_scripts/scripts"
sebyx07 commented 6 months ago

cool ty! that worked, but i had to put into docker-compose.yml

Helias commented 6 months ago

Can you try adding this section to docker-compose.override.yaml:

services:
  ac-worldserver:
    environment:
      AC_ELUNA_SCRIPT_PATH: "/azerothcore/env/dist/bin/lua_scripts/scripts"

thanks for the suggestion

if this is missing, please add it in the acore-docker repository and/or in the README.md (then close this issue)