안녕하세요, 여기에서 Ember-CLI에 대한 설명을 추가하고, docker 컨테이너에 진입하지 않고도 아래 명령어를 실행할 수 있는 단축키를 만들어야 한다고 생각합니다.
또한, 컨테이너에서 위의 명령어를 실행해도 작동하지 않습니다. 컨테이너가 4200 포트를 노출하지 않은 것 같습니다.
![]()
d/boot_dev 파일을 편집하여 4200 포트를 수동으로 노출했습니다:
컨테이너를 재시작한 후 localhost:4200에 접근하니 다음과 같은 결과가 나타났습니다:
discourse@discourse:/tmp$ cat error.dump.cab4cc444229d44fc0fce2deb8695880.log
=================================================================================
ENV Summary:
TIME: Sun May 02 2021 08:01:12 GMT+0000 (Coordinated Universal Time)
TITLE: ember
ARGV:
- /usr/bin/node
- /src/app/assets/javascripts/node_modules/.bin/ember
- server
- --proxy
- http://localhost:3000
EXEC_PATH: /usr/bin/node
TMPDIR: /tmp
SHELL: /bin/bash
PATH:
- /tmp/yarn--1619942449179-0.1910991449592403
- /src/app/assets/javascripts/discourse/node_modules/.bin
- /home/discourse/.config/yarn/link/node_modules/.bin
- /src/app/assets/javascripts/node_modules/.bin
- /home/discourse/.yarn/bin
- /usr/libexec/lib/node_modules/npm/bin/node-gyp-bin
- /usr/lib/node_modules/npm/bin/node-gyp-bin
- /usr/bin/node_modules/npm/bin/node-gyp-bin
- /usr/local/sbin
- /usr/local/bin
- /usr/sbin
- /usr/bin
- /sbin
- /bin
PLATFORM: linux x64
FREEMEM: 8603062272
TOTALMEM: 41962496000
UPTIME: 612639
LOADAVG: 3.32177734375,2.19580078125,1.47900390625
CPUS:
- Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz - 3301
- Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz - 3300
- Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz - 3300
- Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz - 3301
ENDIANNESS: LE
VERSIONS:
- ares: 1.15.0
- brotli: 1.0.7
- cldr: 35.1
- http_parser: 2.9.3
- icu: 64.2
- modules: 64
- napi: 7
- nghttp2: 1.41.0
- node: 10.23.0
- openssl: 1.1.1g
- tz: 2019c
- unicode: 12.1
- uv: 1.34.2
- v8: 6.8.275.32-node.59
- zlib: 1.2.11
ERROR Summary:
- broccoliBuilderErrorStack: [undefined]
- code: ECONNREFUSED
- codeFrame: [undefined]
- errorMessage: connect ECONNREFUSED 127.0.0.1:3000
- errorType: [undefined]
- location:
- column: [undefined]
- file: [undefined]
- line: [undefined]
- message: connect ECONNREFUSED 127.0.0.1:3000
- name: Error
- nodeAnnotation: [undefined]
- nodeName: [undefined]
- originalErrorMessage: [undefined]
- stack: Error: connect ECONNREFUSED 127.0.0.1:3000
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1107:14)
=================================================================================
bin/ember-cli 파일에서 PORT를 3000에서 9292로 수정하니 모두 정상 작동했습니다.

ember-cli bash 스크립트가 ENV["UNICORN_PORT"]와 함께 작동하지 않는 것 같습니다.


