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

สร้างคำสั่ง new #7

Open
chanwit opened this issue Jun 20, 2011 · 12 comments
Open

สร้างคำสั่ง new #7

chanwit opened this issue Jun 20, 2011 · 12 comments
Milestone

Comments

@chanwit
Copy link
Member

chanwit commented Jun 20, 2011

สร้างคำสั่ง create-app

scenario คือ
$ gon create-app test

จะได้ project test
ข้างในมี app/ ไฟล์ gon

เมื่อ cd test แล้วสั่ง gon run-app แล้วเปิด server ไปที่ 127.0.0.1:8080 จะเจอหน้า welcome

@chanwit
Copy link
Member Author

chanwit commented Jul 1, 2011

เปลี่ยนเป็น

$ gon new app

น่าจะดีกว่า

@wingyplus
Copy link
Contributor

วิธีสร้างมันทำยังไงเหรอครับ

@chanwit
Copy link
Member Author

chanwit commented Jul 5, 2011

ทำ script แบบลอง gonrun ดู
แล้วให้มันสร้าง directory แล้วก็ copy ไฟล์ที่จำเป็นเข้าไป

ถ้าจะลอง เริ่มประมาณนี้ก็ได้

@wingyplus
Copy link
Contributor

ตัว script มันเป็น bash เหรอครับ

@wingyplus
Copy link
Contributor

ถามอีกเรื่องนึงครับ create-app ให้เอาไปแต่โฟลเดอร์ app อย่างเดียวมั้ยครับ

@chanwit
Copy link
Member Author

chanwit commented Jul 6, 2011

จะลอง bash ก่อนก็ได้ แต่สุดท้ายเลยว่าจะให้เป็น script gonrun

@chanwit
Copy link
Member Author

chanwit commented Jul 6, 2011

ถามอีกเรื่องนึงครับ create-app ให้เอาไปแต่โฟลเดอร์ app อย่างเดียวมั้ยครับ
จะมี app/controller, app/domain, app อื่น ๆ
แล้วก็ script/ แบบว่าง ๆ

@wingyplus
Copy link
Contributor

ตอนนี้ทำมา ได้แต่ copy จากตัวก่อนเพื่อไปสร้างใหม่น่ะครับ เพราะมันต้องเอา โฟลเดอร์ framework ไปด้วยไม่งั้นรันไม่ได้น่ะครับ ผมยังหาวิธีไม่ได้ https://github.com/sut-go/gon/commit/2220361a9277811ccc3540e21459a09414020efa

ช่วยแนะเบื้องต้นได้มั้ยครับ

@chanwit
Copy link
Member Author

chanwit commented Jul 7, 2011

คิดไว้อยู่เหมือนกัน
ถ้าจะแก้ให้คอมไพล์แบบนั้นได้ ต้องให้ mgd ชี้ไปหา library ของตัวเฟรมเวิร์คตอมมันคอมไพล์ด้วย

@wingyplus
Copy link
Contributor

งั้นก็ต้องเซต path gon ?

@chanwit
Copy link
Member Author

chanwit commented Jul 7, 2011

งั้นก็ต้องเซต path gon ?
ถูกต้อง

และคิดว่าต้องมีวิธีการชี้ไปหามันทางใดทางหนึ่ง

2011/7/7 wingyplus
[email protected]:

งั้นก็ต้องเซต path gon ?

Reply to this email directly or view it on GitHub:
https://github.com/sut-go/gon/issues/7#issuecomment-1521847

Chanwit Kaewkasi
code.google.com/p/zkgrails
twitter.com/chanwit

@wingyplus
Copy link
Contributor

เรื่องนี้แหละครับที่ผมคิดไม่ออก ฮา

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

No branches or pull requests

2 participants