First app's trouble

Hi, I meet a trouble with first app & site.
I use a server and use vscode link to server’s frappe container development envirment.
with follow step:

  1. bench new-app abcd
  2. bench new-site --install-app abcd abcd.com
  3. bench start
    in my developing machine, i change the host file to map ip to domain name.

then use http://abcd.com:8000 visit the site, there’s nothing with HTTP ERROR 502. when i use the ip visit the site , will be 125.233.55.5 not Found.

How can do ??

i copy the compose file from frappe_docker:

version: "3.7"
services:
  mariadb:
    image: mariadb:10.6
    command:
      - --character-set-server=utf8mb4
      - --collation-server=utf8mb4_unicode_ci
      - --skip-character-set-client-handshake
      - --skip-innodb-read-only-compressed # Temporary fix for MariaDB 10.6
    environment:
      MYSQL_ROOT_PASSWORD: 123
    volumes:
      - mariadb-data:/var/lib/mysql

  # Enable PostgreSQL only if you use it, see development/README.md for more information.
  # postgresql:
  #   image: postgres:11.8
  #   environment:
  #     POSTGRES_PASSWORD: 123
  #   volumes:
  #     - postgresql-data:/var/lib/postgresql/data

  redis-cache:
    image: redis:alpine

  redis-queue:
    image: redis:alpine

  redis-socketio:
    image: redis:alpine

  frappe:
    image: frappe/bench:latest
    command: sleep infinity
    environment:
      - SHELL=/bin/bash
    volumes:
      - ..:/workspace:cached
      # Enable if you require git cloning
      # - ${HOME}/.ssh:/home/frappe/.ssh
    working_dir: /workspace/development
    ports:
      - 8000-8005:8000-8005
      - 9000-9005:9000-9005

volumes:
  mariadb-data:
  postgresql-data:

Which file did you change?

It should be from host machine. Not one from container

I change my laptop machine’s host file, map abcd.com to host’s ip, which host start a docker-compose, I attach the docker and run the upper scripts.

Ohh, I found that I miss the most important information:

sitename MUST end with .localhost for trying deployments locally.