Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

페이지 레이아웃 깨짐 #1

Open
e9t opened this issue Jan 11, 2017 · 8 comments
Open

페이지 레이아웃 깨짐 #1

e9t opened this issue Jan 11, 2017 · 8 comments

Comments

@e9t
Copy link
Member

e9t commented Jan 11, 2017

일단 @stray-leone 과 함께 작업해서 localhost에 페이지를 띄우는데까지 성공을 했습니다. (66fe32f)
다만 레이아웃이 다 깨지는데요.

screen shot 2017-01-11 at 11 41 18 pm

문제는 cssmin, uglifyjs의 선언부가 동작하고 있지 않아서 발생한 것으로 생각됩니다.

screen shot 2017-01-11 at 11 42 58 pm

@stray-leone
Copy link
Member

stray-leone commented Jan 11, 2017

npm install시에 원하는 위치에 module들이 설치가 안되서 이거도 해결해야해요.
d3.js 를 찾을 수 없다는 메시지가 나올꺼에요.

@k-choi
Copy link

k-choi commented Jan 11, 2017 via email

@k-choi
Copy link

k-choi commented Jan 14, 2017

Dockerfile 실행 시켜서 돌리고 있습니다. 약 40분 정도 지났는데 아직 실행 중이네요. 보통 얼마쯤 걸리나요?

@k-choi
Copy link

k-choi commented Jan 14, 2017

스크립트 돌리는데 성공했어요. 그런데 덤프 데이터베이스 로드 중에 에러가 발생합니다. 에러만 모아보자면 다음과 같습니다:
psql:./pokr.kr/pokrdb.dump:55156: ERROR: invalid byte sequence for encoding "UTF8": 0xed 0x83 0x2e
psql:./pokr.kr/pokrdb.dump:382526: ERROR: value too long for type character varying(20)
CONTEXT: COPY candidacy, line 976, column district: "{제주특별자치도,제주도선거구}"
psql:./pokr.kr/pokrdb.dump:1308178: ERROR: value too long for type character varying(20)
CONTEXT: COPY party, line 1, column name: "무당파국민연합"
psql:./pokr.kr/pokrdb.dump:1340584: ERROR: value too long for type character varying(20)
CONTEXT: COPY person, line 493, column name: "티코노프블라디미르"
psql:./pokr.kr/pokrdb.dump:1341820: ERROR: value too long for type character varying(128)
CONTEXT: COPY pledge, line 27, column pledge: "<공약3> 대학교 반값등록금 문제 실질적 해결[진정한 반값등록금 실현! 진정..."
psql:./pokr.kr/pokrdb.dump:1695950: ERROR: value too long for type character varying(20)
CONTEXT: COPY region, line 610, column name: "중앙·의림·명동"
psql:./pokr.kr/pokrdb.dump:1696515: ERROR: value too long for type character varying(40)
CONTEXT: COPY school, line 242, column name: "웨스트민스터신학대학원대학교"
psql:./pokr.kr/pokrdb.dump:2525438: ERROR: insert or update on table "bill_feed" violates foreign key constraint "bill_feed_bill_id_fkey"
DETAIL: Key (bill_id)=(1900034) is not present in table "bill".
psql:./pokr.kr/pokrdb.dump:2525454: ERROR: insert or update on table "bill_keyword" violates foreign key constraint "bill_keyword_bill_id_fkey"
DETAIL: Key (bill_id)=(1900001) is not present in table "bill".
psql:./pokr.kr/pokrdb.dump:2525470: ERROR: insert or update on table "bill_review" violates foreign key constraint "bill_review_bill_id_fkey"
DETAIL: Key (bill_id)=(172036) is not present in table "bill".
psql:./pokr.kr/pokrdb.dump:2525518: ERROR: insert or update on table "cosponsorship" violates foreign key constraint "cosponsorship_bill_id_fkey"
DETAIL: Key (bill_id)=(1900568) is not present in table "bill".
psql:./pokr.kr/pokrdb.dump:2525526: ERROR: insert or update on table "cosponsorship" violates foreign key constraint "cosponsorship_person_id_fkey"
DETAIL: Key (person_id)=(1953215) is not present in table "person".
psql:./pokr.kr/pokrdb.dump:2525550: ERROR: insert or update on table "favorite_person" violates foreign key constraint "favorite_person_person_id_fkey"
DETAIL: Key (person_id)=(19621122) is not present in table "person".
psql:./pokr.kr/pokrdb.dump:2525574: ERROR: insert or update on table "meeting_attendee" violates foreign key constraint "meeting_attendee_person_id_fkey"
DETAIL: Key (person_id)=(1964213) is not present in table "person".
psql:./pokr.kr/pokrdb.dump:2525582: ERROR: insert or update on table "party_affiliation" violates foreign key constraint "party_affiliation_party_id_fkey"
DETAIL: Key (party_id)=(195) is not present in table "party".
psql:./pokr.kr/pokrdb.dump:2525590: ERROR: insert or update on table "party_affiliation" violates foreign key constraint "party_affiliation_person_id_fkey"
DETAIL: Key (person_id)=(19581139) is not present in table "person".
psql:./pokr.kr/pokrdb.dump:2525622: ERROR: insert or update on table "statement" violates foreign key constraint "statement_person_id_fkey"
DETAIL: Key (person_id)=(19561118) is not present in table "person".
psql:./pokr.kr/pokrdb.dump:2525630: ERROR: insert or update on table "user" violates foreign key constraint "user_address_id_fkey"
DETAIL: Key (address_id)=(2112054) is not present in table "region".

@k-choi
Copy link

k-choi commented Jan 14, 2017

최종 용량은 3.605 GB이군요.

@k-choi
Copy link

k-choi commented May 18, 2017

BuildError: [Errno 2] No such file or directory: '/home/kchoi100/localspace/pokr.kr/pokr/static/node_modules/d3/d3.js'

@k-choi
Copy link

k-choi commented May 18, 2017

d3 부분은 node_modules/d3/build/d3.js 를 하면 해결되네요. 그런데 uglifyjs가 제대로 설치된 것 같은데 동작을 안 하는 점이 이상하네요. filters='uglifyjs'대신 filters='uglaaaaaaifyjs'와 같이 임의의 문자열을 넣으면 해당 필터가 없다고 나오는 점을 봐서는 uglifyjs는 제대로 찾는 것 같습니다.

@k-choi
Copy link

k-choi commented May 19, 2017

webassets 모듈만 있으면 uglifyjs나 cssmin 등은 없어도 filters='uglifyjs' 같은 부분은 에러가 발생하지 않는 것 같습니다. 실제 모듈을 찾지 못해도 없는 대로 돌아가는 것 같아요. 어떻게 고쳐야할지 모르겠네요.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants