Updating changes

Hi,

I’m sorry, I’m editing files located on frontend/src/app/services/languages/local (languages files) but I can not see the changes that I did. Do I need to restart the container? docker-compose restart? or
docker-compose exec php php bin/console twake:init ?

I have tried both of them, but I can no see changes.

I really appreciate your attention and help :wink:

Hi @peter, welcome to Twake community forums :slight_smile:

If you want to edit the Twake code, you first must ensure docker uses your files using a new volume (./frontend/:/twake-react/):

  nginx:
    image: twaketech/twake-nginx
    environment:
      - DEV=dev
    build:
      context: .
      dockerfile: docker/twake-nginx/Dockerfile
    ports:
      - 8000:80
    depends_on:
      - php
      - node
    volumes_from:
      - php
      - node
    volumes:
      - ./frontend/:/twake-react/
      - ./configuration/frontend/:/configuration
      - ./docker-data/logs/nginx/:/var/log/nginx
      - ./docker-data/drive-preview/:/twake-core/web/medias/
      - ./docker-data/uploads/:/twake-core/web/upload/

Now Docker reads your files in frontend instead of its own internal copy.

Then you can rebuild the frontend with:

docker-compose exec nginx yarn dev-build
# or docker-compose exec nginx yarn build