Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
V
Venjob_HungNT
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Ngô Trung Hưng
  • Venjob_HungNT
  • Merge Requests
  • !1

Merged
Opened Jul 27, 2020 by Ngô Trung Hưng@hungnt 
  • Report abuse
Report abuse

fix convention

  • Discussion 3
  • Commits 1
  • Pipelines 1
  • Changes 17
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
  • Ngô Trung Hưng @hungnt

    merged

    Jul 28, 2020

    merged

    merged
    Toggle commit list
  • Hiếu Lê
    @hieulh started a discussion on the diff Jul 28, 2020
    .vscode/settings.json 0 → 100644
    1 {
    2 "emmet.excludeLanguages": [
    3 "markdown"
    4 ]
    5 }
    • Hiếu Lê @hieulh commented Jul 28, 2020

      File này chỉ mình mình xài, không cần push lên. Tường tự, file log ở dưới không cần phải push lên. Tìm hiểu cách dùng .gitignore

      Edited Jul 28, 2020 by Hiếu Lê
      File này chỉ mình mình xài, không cần push lên. Tường tự, file log ở dưới không cần phải push lên. Tìm hiểu cách dùng `.gitignore`
    Please register or sign in to reply
  • Hiếu Lê
    @hieulh started a discussion on the diff Jul 28, 2020
    error.log
    159 159 /home/hungnt/.rbenv/versions/2.6.6/bin/bundle:23:in `<main>'
    160 160 Tasks: TOP => crawler:populate => environment
    161 161 (See full trace by running task with --trace)
    162 rake aborted!
    163 TypeError: no implicit conversion of URI::Generic into String
    164 /home/hungnt/hungnt_venjob/lib/src/interface_web.rb:225:in `block in make_data'
    165 /home/hungnt/hungnt_venjob/lib/src/interface_web.rb:224:in `each'
    166 /home/hungnt/hungnt_venjob/lib/src/interface_web.rb:224:in `each_with_index'
    167 /home/hungnt/hungnt_venjob/lib/src/interface_web.rb:224:in `make_data'
    168 /home/hungnt/hungnt_venjob/lib/tasks/crawler.rake:9:in `block (2 levels) in <main>'
    169 /home/hungnt/.rbenv/versions/2.6.6/bin/bundle:23:in `load'
    170 /home/hungnt/.rbenv/versions/2.6.6/bin/bundle:23:in `<main>'
    171 Tasks: TOP => crawler:populate
    172 (See full trace by running task with --trace)
    • Hiếu Lê @hieulh commented Jul 28, 2020

      File này cũng ko push lên. Không push các loại file log nên, vì sau 1 time nó sẽ rất nặng và không có ý nghĩa gì.

      File này cũng ko push lên. Không push các loại file log nên, vì sau 1 time nó sẽ rất nặng và không có ý nghĩa gì.
    Please register or sign in to reply
  • Hiếu Lê
    @hieulh started a discussion on the diff Jul 28, 2020
    lib/src/ftp.rb
    9
    10 12 def self.donwload_csv
    11 Net::FTP.open(CONTENT_SERVER_DOMAIN_NAME, CONTENT_SERVER_USER_NAME, CONTENT_SERVER_USER_PASSWORD) do |ftp|
    12 ftp.getbinaryfile('jobs.zip')
    13 Net::FTP.open(CONTENT_SERVER_DOMAIN_NAME, CONTENT_SERVER_USER_NAME, CONTENT_SERVER_USER_PASSWORD) do |ftp|
    14 ftp.getbinaryfile('jobs.zip')
    13 15 begin
    14 extract_zip('./jobs.zip','lib/csv')
    16 extract_zip('./jobs.zip', 'lib/csv')
    15 17 File.delete('./jobs.zip') if File.exist?('./jobs.zip')
    16 puts "Extract file done"
    17 rescue
    18 puts "File not found"
    18 puts 'Extract file done'
    19 rescue StandardError => e
    20 puts "#{e}File not found"
    • Hiếu Lê @hieulh commented Jul 28, 2020

      StandardError chưa chắc mang ý nghĩa là File not found nha em. File not found nó sẽ báo 1 lỗi cụ thể khác em có thể bắt riêng từng lỗi nếu muốn lấy log chi tiết.

      `StandardError` chưa chắc mang ý nghĩa là File not found nha em. File not found nó sẽ báo 1 lỗi cụ thể khác em có thể bắt riêng từng lỗi nếu muốn lấy log chi tiết.
    Please register or sign in to reply
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment
Assignee
No assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
2
2 participants
Reference: hungnt/Venjob_HungNT!1