Skip to content

Instantly share code, notes, and snippets.

MedicineManufacturer.create!(name: "Anshi Pharmaceutical (Zhongshan) Inc", website: "http://www.azpharm.com.cn/az/en/", email: "marketing@azpharm.com.cn", contact_info: "Address: 7 Huiling Rd, National Health Technology Park, Torch Hi-tech Development Zone, Zhongshan, Guangdong Province, P.R. China.
Tel: +86-760-87880211
Email: marketing@azpharm.com.cn", chinesename: "安士制药(中山)有限公司")
MedicineManufacturer.create!(name: "Suzhou Amerigen Pharmaceutical Co., Ltd.", website: "https://amerigenpharma.cn/", email: "kzhao@amerigenpharma.com", contact_info: "Tel: +86-512-67451085 ext 101", chinesename: "苏州爱美津制药有限公司")
MedicineManufacturer.create!(name: "Shanghai Anbison Lab. Co., Ltd.", website: "http://www.anbison.com/index.php", email: "admin@anbison.com", contact_info: "Address: No.889 Yishan Road ,Building 4,7th Floor,Unit E (Qilai Industrial City) Shanghai 200233, P.R. China
Phone : (86)-021-54973497
Fax : (86)-021-54973496
U.S. Office Phone/ Fax: 001-949-777-5588
URL: http://www.anbison.com
E-Mail: admin@anbison.c
liulupeng@liulupengdeMacBook-Pro ⮀ ~/jdstore-1 ⮀ ⭠ master ⮀ heroku logs
2017-05-21T07:56:35.127657+00:00 heroku[run.6690]: State changed from up to complete
2017-05-21T07:56:35.113065+00:00 heroku[run.6690]: Process exited with status 1
2017-05-21T07:58:03.668223+00:00 app[api]: Starting process with command `bundle install` by user lupengliu@gmail.com
2017-05-21T07:58:08.445531+00:00 heroku[run.7373]: Awaiting client
2017-05-21T07:58:08.490340+00:00 heroku[run.7373]: Starting process with command `bundle install`
2017-05-21T07:58:08.577712+00:00 heroku[run.7373]: State changed from starting to up
2017-05-21T07:58:16.902579+00:00 heroku[run.7373]: State changed from up to complete
2017-05-21T07:58:16.890695+00:00 heroku[run.7373]: Process exited with status 0
2017-05-21T07:58:29.025370+00:00 app[api]: Starting process with command `bundle exec rake db:migrate` by user lupengliu@gmail.com
objs/src/http/modules/ngx_http_upstream_zone_module.o \
objs/src/http/modules/ngx_http_stub_status_module.o \
objs/addon/nginx_module/ngx_http_passenger_module.o \
objs/addon/nginx_module/Configuration.o \
objs/addon/nginx_module/ContentHandler.o \
objs/addon/nginx_module/StaticContentHandler.o \
objs/ngx_modules.o \
-ldl -lpthread -lcrypt /home/apps/.rvm/gems/ruby-2.3.1/gems/passenger-5.1.4/buildout/common/libpassenger_common/Logging.o /home/apps/.rvm/gems/ruby-2.3.1/gems/passenger-5.1.4/buildout/common/libpassenger_common/Exceptions.o /home/apps/.rvm/gems/ruby-2.3.1/gems/passenger-5.1.4/buildout/common/libpassenger_common/Utils/SystemTime.o /home/apps/.rvm/gems/ruby-2.3.1/gems/passenger-5.1.4/buildout/common/libpassenger_common/Utils/StrIntUtils.o /home/apps/.rvm/gems/ruby-2.3.1/gems/passenger-5.1.4/buildout/common/libpassenger_common/Utils/StrIntUtilsNoStrictAliasing.o /home/apps/.rvm/gems/ruby-2.3.1/gems/passenger-5.1.4/buildout/common/libpassenger_common/Utils/IOUtils.o /home/apps/.rvm/gems/ruby-2.3.1/ge
@liulupeng1987
liulupeng1987 / search功能异常分析.txt
Created April 8, 2017 08:39
search功能异常分析.txt
# 下面这段是原有的job-listing中的search功能,输入“shichang”进行搜索,terminal中的记录。可以看到在第4行,有 WHERE "jobs"."is_hidden" = ? AND ("jobs"."title" LIKE '%shichang%' OR "jobs"."description" LIKE '%shichang%')
Parameters: {"utf8"=>"✓", "q"=>"shichang"}
Rendering jobs/search.html.erb within layouts/application
Job Load (0.2ms) SELECT DISTINCT "jobs".* FROM "jobs" WHERE "jobs"."is_hidden" = ? AND ("jobs"."title" LIKE '%shichang%' OR "jobs"."description" LIKE '%shichang%') LIMIT ? OFFSET ? [["is_hidden", false], ["LIMIT", 5], ["OFFSET", 0]]
Job Load (0.2ms) SELECT DISTINCT "jobs".* FROM "jobs" WHERE "jobs"."is_hidden" = ? AND ("jobs"."title" LIKE '%shichang%' OR "jobs"."description" LIKE '%shichang%') [["is_hidden", false]]
Rendered jobs/search.html.erb within layouts/application (3.5ms)
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ? [["id", 1], ["LIMIT", 1]]
Rendered common/_navbar.html.erb (3.6ms)
Rendered common/_flashes.html.erb (0.9ms)
Rendered common/_
@liulupeng1987
liulupeng1987 / gist:22c4132fef18f949f33d979a28e0b383
Created April 2, 2017 02:24
rails 5 git push heroku master error
liulupeng@liulupengdeMacBook-Pro ⮀ ~/FDA ⮀ ⭠ master ⮀ git push heroku master
Counting objects: 273, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (246/246), done.
Writing objects: 100% (273/273), 270.34 KiB | 0 bytes/s, done.
Total 273 (delta 99), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.0.1'
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (2.3.5)
aasm (4.11.1)
actioncable (5.0.1)
actionpack (= 5.0.1)
nio4r (~> 1.2)
websocket-driver (~> 0.6.1)
actionmailer (5.0.1)
liulupeng@liulupengdeMacBook-Pro ⮀ ~/eshop2/eshop ⮀ ⭠ llp-9-AWS ⮀ git push heroku aws:master
Counting objects: 1220, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (546/546), done.
Writing objects: 100% (1220/1220), 3.33 MiB | 590.00 KiB/s, done.
Total 1220 (delta 746), reused 1002 (delta 611)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
@liulupeng1987
liulupeng1987 / terminal
Created February 18, 2017 13:57
git push heroku story5:master 错误
liulupeng@liulupengdeMacBook-Pro ⮀ ~/jdstore ⮀ ⭠ story5 ⮀ git push heroku story5:master
Counting objects: 689, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (626/626), done.
Writing objects: 100% (689/689), 85.35 KiB | 0 bytes/s, done.
Total 689 (delta 378), reused 67 (delta 4)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected