[개발] condenser 개발시 config 설정 steemCreated with Sketch.

in UPVUlast year

안녕하세요 @realmankwon 입니다.

condenser 로 로컬 테스트를 할때 기본적으로 yarn start 명령어를 사용합니다.
이 명령어를 사용하면 build 후에 자동으로 로컬서버를 실행시켜주기 때문에 편합니다.
덕분에 로컬서버 실행 후에 소스를 변경하고 브라우저를 리프레쉬만 해주면 알아서 컴파일된 결과가 적용이 됩니다.

만약 'yarn production' 명령어를 사용하면 매번 yarn build를 하고 yarn production을 해주어야 하기 때문에 아주아주 귀찮습니다.
그런데 문제는 yarn start이 config 파일 중 defaults.json 파일을 사용하게 되기 때문에 테스트가 쉽지 않습니다.
왜냐하면 defaults.json 파일의 image 서버 주소가 로컬서버에서는 접속이 되지 않는 주소기 때문입니다.
이것을 steemitimages.com 으로 변경을 해줘야 하는데 재단에서는 defaults.json 파일을 변경하지 말라고 하였습니다.
그래서 수정하여 개발하다고 push 할때 다시 변경해 주곤 했습니다.

주말에 시간이 날때 귀찮아도 방법을 찾아야겠다 싶어서 이래저래 해봤더니 생각보다 간단하게 해결이 되었습니다.
바로 development.json 파일을 생성해 주면 되었습니다.
이제는 좀 편하게 개발할 수 있을 것 같네요.

Sort:  

@realmankwon Every change encounters obstacles along the way, making change itself an ongoing process rather than a static theme. I aspire to be a devoted follower and eagerly await the opportunity to receive your vote.

Working part-time, I bring in more than $27,000 USD per month. I listened to a variety of people explain to me how much money they would reasonably expect to make online, so it’s still difficult to determine. It did become all genuine, and it completely db40 altered my life. Everyone should now just try this line of work.

By using this website——————>>> http://www.cash.salary49.com/

Coin Marketplace

STEEM 0.20
TRX 0.12
JST 0.029
BTC 61760.04
ETH 3379.87
USDT 1.00
SBD 2.52