Commit 9f9afa19 by Mai Hoang Thai Ha

push heroku

parent 66f58ce6
...@@ -6,6 +6,7 @@ class TopController < ApplicationController ...@@ -6,6 +6,7 @@ class TopController < ApplicationController
solr = Solr.new(params) solr = Solr.new(params)
@latest_jobs = get_jobs(solr.latest_jobs) @latest_jobs = get_jobs(solr.latest_jobs)
@total_job = solr.query_all['response']['numFound'] @total_job = solr.query_all['response']['numFound']
@total_job = 100
@top_cities = solr.facet_query('city_id')['vietnam'].take(City::TOP_JOB_COUNT) @top_cities = solr.facet_query('city_id')['vietnam'].take(City::TOP_JOB_COUNT)
@top_industries = solr.facet_query('industry_id').take(Industry::TOP_JOB_COUNT) @top_industries = solr.facet_query('industry_id').take(Industry::TOP_JOB_COUNT)
end end
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
default: &default default: &default
adapter: mysql2 adapter: mysql2
encoding: utf8mb4 encoding: utf8mb4
host: localhost
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: root username: root
password: 'admin' password: 'admin'
......
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 to comment