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

should have FAQ page #207

Closed
hoatle opened this issue Jan 4, 2017 · 11 comments
Closed

should have FAQ page #207

hoatle opened this issue Jan 4, 2017 · 11 comments

Comments

@hoatle
Copy link
Member

hoatle commented Jan 4, 2017

to answer FAQ

datphan [9:41 AM]  
sao chay grunt k dc nua anh @hoatle nhir

[9:41]  
vagrant ssh xong `grunt`

[9:41]  
k dc nua

[9:42]  
hay la phai npm install lai nhi

[9:42]  
de em thu

hoatle [9:42 AM]  
teracy-dev mới nhất thì dùng docker thôi em, ko có node hay npm hay gì đâu, em cần chạy docker ấy

datphan [9:42 AM]  
tuc la phai them Dockerfile vao ha anh

[9:43]  
co ho nao copy k nhi

hoatle [9:43 AM]  
đúng rồi em, em xem các project tương tự để copy + paste là được

[9:43]  
xem numerologist

[9:44]  
trong Dockerfile em install grunt vào rồi là chạy được grunt

[9:45]  
đấy là ví dụ Dockerfile-app-dev bên iorad a đang làm có grunt để chạy, support compass (sass)

hoatle [9:45 AM]  
added a Markdown (raw) snippet: Dockerfile-app-dev 


hoatle [9:49 AM]  
trùng hợp cũng có người hỏi tương tự luôn

[9:49]  
 ```ahuhu
npm ko chạy dc em ơi
anh dùng Docker chứ sao lại dùng npm ở trong VM
VM mặc định chỉ có install docker và docker-compose thôi, a follow docker workflow ấy
ko dùng npm trực tiếp ở VM
cách dùng thế nào thì a follow theo video hôm nọ đấy để nắm được basic rồi triển khai

oh, để anh xem lại ```

hoavt [9:51 AM]  
co khi nên có phần tổng hợp những vấn đề mọi người hay gặp phải

hoatle [9:52 AM]  
ừ, nên có FAQ

[9:52]  
bạn tạo issue rồi tổng hợp bên teracyhq/dev ấy
@hoatle hoatle added the docs label Jan 4, 2017
@hoatle hoatle added this to the v0.5.0 milestone Jan 4, 2017
@hoatle
Copy link
Member Author

hoatle commented Jan 5, 2017

hoavt [2:30 PM]
ma gio upgrade vagrant va virtual machine ben may win thi phai cai ca chocolatey a?

hoatle [2:36 PM]
ừ, cài lại toàn bộ đi

hoavt [2:36 PM]

x
'iwr' is not recognized as an internal or external command,
operable program or batch file.

C:\Windows\system32>

hoavt [2:50 PM]
nos bao loi the nay, ko cai dc

[2:51]
ma sao cai doan copy nay khac voi cai doan trong video cua @hoatle nhi

hoatle [3:06 PM]
nó mới thay đổi, dùng PowerShell v3, còn dùng cmd thì bạn chọn More Install Options, nhưng dùng default option của nó trước xem chạy ok không

[3:06]
mở PowerShell lên rồi copy + paste vào

[3:07]
nó có mấy install options luôn đấy, nên dùng cái nào dễ và tiện trên Windows 7, 8, 10

hoavt [3:09 PM]
ua

hoatle [3:11 PM]
bạn xem chạy bằng Powershell ok không thì để update video + docs dùng PowerShell luôn

hoavt [3:12 PM]

opyright (C) 2009 Microsoft Corporation. All rights reserved.

S C:\Users\HoaVu> iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex
he term 'iwr' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spellin
 of the name, or if a path was included, verify that the path is correct and try again.
t line:1 char:4
 iwr <<<<  https://chocolatey.org/install.ps1 -UseBasicParsing | iex
   + CategoryInfo          : ObjectNotFound: (iwr:String) [], CommandNotFoundException
   + FullyQualifiedErrorId : CommandNotFoundException

S C:\Users\HoaVu>


hoatle [3:14 PM]
chắc PowerShell < v3 rồi, dùng cmd.exe đi với install option là Cmd.exe đấy (edited)

[3:16]
http://stackoverflow.com/questions/1825585/determine-installed-powershell-version ở windows 7 mặc định là v2
stackoverflow.com
Determine installed PowerShell version
How can I determine what version of PowerShell is installed on a computer, and indeed if it is installed at all?

[3:17]
mà option trên nó yêu cầu v3+, thế vẫn thống nhất dùng Cmd.exe nhé, trong docs bạn update lại là cần chọn đúng option này (edited)

hoavt [3:17 PM]
dang chay cai cmd

hoatle [3:18 PM]
http://dev.teracy.org/docs/develop/getting_started.html#automatic-installation-on-windows

[3:18]


Run Command Prompt as administrator and paste the Cmd.exe command copied from https://chocolatey.org/install```

[3:18]  
thế này đã rõ chưa, bạn làm thế nào cho rõ hơn, đỡ bị nhầm giống bạn

[3:21]  
lỗi của bạn có thể update vào FAQ nữa https://github.com/teracyhq/dev/issues/207

@hoatle
Copy link
Member Author

hoatle commented Jan 6, 2017

Q: What should I do after updating vagrant_config_override.json to get it applied to the VM?
A: Make sure to save the config file and you can run $ vagrant provision first, usually this should work. If not, run $ vagrant reload --provision.

@hoatle
Copy link
Member Author

hoatle commented Jan 31, 2017

when $ vagrant up gets stuck at this step:

    default: /tmp/vagrant-chef/7cb2926f81b5c74a4ca3dd163f9d9ffd/roles => /Users/hoatle/teracy-dev/workspace/teracy-dev/roles
    default: /tmp/vagrant-chef/3071687433aa992e850e416aafea8f25/nodes => /Users/hoatle/teracy-dev/workspace/teracy-dev/nodes
    default: /tmp/vagrant-chef/bbfefdc57119d7552b06b24069242f8a/data_bags => /Users/hoatle/teracy-dev/workspace/teracy-dev/data_bags
    default: /tmp/vagrant-chef/9b5518c8fee080ca55f1c57179068e17/cookbooks => /Users/hoatle/teracy-dev/workspace/teracy-dev/vendor-cookbooks
    default: /tmp/vagrant-chef/87b97d785383812081b2ec7e56be857d/cookbooks => /Users/hoatle/teracy-dev/workspace/teracy-dev/main-cookbooks
==> default: Running provisioner: chef_solo...
    default: Installing Chef (latest)...

Then stop it, $ vagrant ssh to update this http://askubuntu.com/questions/620317/apt-get-update-stuck-connecting-to-security-ubuntu-com then $ vagrant reload --provision again.

@hoatle
Copy link
Member Author

hoatle commented Feb 20, 2017

[2/20/17, 1:13:59 PM] Arpit Jain: Have encounter this error before?
"Expected linebreaks to be 'LF' but found 'CRLF'"
[2/20/17, 1:15:28 PM] Arpit Jain: As soon as I started making some changes in code, I am then getting this error for each line of almost every file.
[2/20/17, 1:17:35 PM] Hoat Le: please try this http://stackoverflow.com/questions/3802406/configure-visual-studio-with-unix-end-of-lines
[2/20/17, 1:18:04 PM] Hoat Le: or you can try SublimeText
[2/20/17, 1:18:15 PM] Hoat Le: > choco install SublimeText -y
[2/20/17, 1:18:54 PM] Arpit Jain: I stopped using Visual studio already and using Sublime text editor
[2/20/17, 1:19:59 PM] Hoat Le: you should use this config on the SublimeText View>Line Endings>Unix
[2/20/17, 1:20:29 PM] Arpit Jain: its already Unix
[2/20/17, 1:21:59 PM] Hoat Le: maybe this should help http://stackoverflow.com/questions/39680585/how-do-configure-sublime-to-always-convert-to-unix-line-endings-on-save
[2/20/17, 1:22:30 PM] Arpit Jain: ok give me some time
[2/20/17, 1:23:03 PM] Hoat Le: try this first mentioned on the page: "Menu > View > Line Endings or enable the setting "show_line_endings": false then on the bottom right of the status bar it will show what the current line ending is, and when you click it you can select which one to change it to."
[2/20/17, 1:26:56 PM] Arpit Jain: Ok let me try these options
[2/20/17, 1:33:12 PM] Arpit Jain: Yes that option (View>Line Endings>Unix) worked for me
[2/20/17, 1:33:17 PM] Arpit Jain: Thanks
[2/20/17, 1:33:24 PM] Hoat Le: you're welcome

@hoatle
Copy link
Member Author

hoatle commented Feb 20, 2017

when vagrant ssh got stuck at "settings networks", then try this: #262

@hoatle hoatle modified the milestones: v0.5.0-c1, v0.5.0 Mar 9, 2017
@hoatle
Copy link
Member Author

hoatle commented Mar 16, 2017

many people has the problem that /etc/hosts are not properly updated when they got errors, after $ vagrant destroy and $ vagrant up.

They end up having multiple same entry that the wrong one is one the top of the file. This leads to wrong dns to point to the right VM IP. What can we do?

  1. check VM's ip: $ vagrant up
  2. $ vagrant hostmanger to make sure /etc/hosts is updated
  3. $ ping <the_configured_domain> to see if it pings the right VM ip from step 1.
  4. If it's not right, open /etc/hosts to check and remove wrong entries.
  5. come back to step 3 to verify.

@hoavt
Copy link
Contributor

hoavt commented May 24, 2017

major change như vậy thì $ vagrant destroy rồi $ vagrant up

[12:01] 
khi �thay đổi version của teracy-dev => vagrant destroy rồi up

[12:01] 
khi thay đổi config của vagrant_config_override.json => $ vagrant reload

[12:01] 
khi thay đổi provisioner (Chef, Bash...) thì $ vagrant reload --provision

[12:01] 
bạn @hoavt take note này mà viết docs

[12:02] 
thông thường nó là vậy, còn khi có lỗi mà ko xử lý được => $ vagrant destroy rồi $ vagrant up```

@hoatle
Copy link
Member Author

hoatle commented Jul 19, 2017

should answer the question: "Why teracy-dev? Why not just Docker?"

```duc4nh [9:31 AM] 
anh ơi em có 1 số thắc mắc về tech liên quan tới docker thì có thể hỏi ai đc ạ?


[9:33] 
ngoài lề tí là em ko hiểu lắm mình dùng 2 tầng abstracts docker trên vagrant có gì tốt hơn nhiều k anh? sao 1 tầng docker chưa đủ ạ?


hoatle [9:40 AM] 
�ví dụ giờ em muốn thống nhất mọi người dùng chung docker version thì làm sao em �enforce được?


[9:40] 
ví dụ có bug liên quan �đến ubuntu 16.04 thì em sẽ check và reproduce kiểu gì? ví dụ như trên môi trường production deploy trên centos hay coreos mà bị lỗi mà do �là OS thì em check và fix lỗi kiểu gì?


[9:41] 
mình phải đảm bảo thống nhất môi trường từ dev tới prod là giống nhau thì sẽ tránh được các lỗi kiểu đó


[9:41] 
ngoài ra teracy-dev giúp automate toàn bộ quá trình cài đặt, `$ vagrant up` là xong hết, chỉ việc start coding ngay sau đó


[9:42] 
�em cứ hỏi ở channel �liê�n quan tới task nhé, ví dụ như em đang làm project cho acme101 thì em hỏi ở #_official ```


hoatle [10:00 AM] 
http://blog.teracy.com/2016/12/20/teracy-dev-the-only-truly-universal-productive-development-platform-with-docker-on-macos-linux-and-windows/ có trả lời rõ hơn nhé @duc4nh

đây là câu hỏi mà rất nhiều người hỏi nên mình �có trả lời ở blog post đó, �bạn @hoavt cũng nên đưa vào FAQ nhé

@hoatle
Copy link
Member Author

hoatle commented Jul 19, 2017

How do I know which version of teracy-dev that I'm using?

hoavt added a commit to hoavt/teracy-dev that referenced this issue Jul 20, 2017
hoavt added a commit to hoavt/teracy-dev that referenced this issue Jul 21, 2017
@ghost ghost assigned hoatle Jul 21, 2017
@ghost ghost added stag:under-review and removed sprt:current labels Jul 21, 2017
@hoatle hoatle removed their assignment Jul 21, 2017
hoavt added a commit to hoavt/teracy-dev that referenced this issue Jul 21, 2017
phuonglm added a commit that referenced this issue Jul 23, 2017
@hoatle hoatle closed this as completed Jul 23, 2017
@hoatle hoatle assigned phuonglm and unassigned hoavt Jul 23, 2017
@hoatle hoatle reopened this Jul 23, 2017
@phuonglm
Copy link
Contributor

verified, close

@ghost ghost removed the stag:under-verification label Jul 24, 2017
@phuonglm phuonglm assigned hoavt and unassigned phuonglm Jul 24, 2017
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

3 participants