diff --git a/config/database.yml b/config/database.yml index abafacb352c3997be8b700c0c501d618f1064778..1cfa07a8d188323538202602e770c2bcd658bb01 100644 --- a/config/database.yml +++ b/config/database.yml @@ -6,16 +6,16 @@ development: adapter: postgresql encoding: unicode database: portalmecapi - username: portalmec - password: 123mudar + username: arthur + password: senhadopostgres host: localhost test: adapter: postgresql encoding: unicode database: portalmecapi - username: portalmec - password: 123mudar + username: arthur + password: senhadopostgres host: localhost production: diff --git a/config/env_vars.sh b/config/env_vars.sh index 008132b1a20ea9fcc7b4234b4951a6dcfd59b48c..6b66ec625c4a7e25740197be9342578625c3cb80 100644 --- a/config/env_vars.sh +++ b/config/env_vars.sh @@ -35,10 +35,11 @@ export PORTALMEC_DSPACE_PORT=8443 export PORTALMEC_DSPACE_HOST=mecdb4.c3sl.ufpr.br ### Elasticsearch credentials -#export PORTALMEC_ELASTICSEARCH_LOGIN= -#export PORTALMEC_ELASTICSEARCH_PASSWORD= +export PORTALMEC_ELASTICSEARCH_LOGIN=portalmec +export PORTALMEC_ELASTICSEARCH_PASSWORD=elasticsearch export PORTALMEC_ELASTICSEARCH_PORT=9200 -export PORTALMEC_ELASTICSEARCH_HOST=localhost +#export PORTALMEC_ELASTICSEARCH_HOST=localhost +export PORTALMEC_ELASTICSEARCH_HOST=elasticsearchprod ### Cache export MEMCACHE_SERVERS=localhost diff --git a/config/schedule.rb b/config/schedule.rb index 4c862d21cf6bacc27fe985e9e6ac69a94a0c2afd..78cb9d05077d875bedc41a70295a32448c14f337 100644 --- a/config/schedule.rb +++ b/config/schedule.rb @@ -53,3 +53,7 @@ end every :sunday, at: '21:00am' do rake 'delete_empty_drafts:drafts_cleanup' end + +every 5.days do + rake 'delete_production_log:delete_log' +end \ No newline at end of file diff --git a/lib/tasks/delete_production_log.rake b/lib/tasks/delete_production_log.rake new file mode 100644 index 0000000000000000000000000000000000000000..9b2006072b14fcd983f96d3d4aa4116c04c683f0 --- /dev/null +++ b/lib/tasks/delete_production_log.rake @@ -0,0 +1,11 @@ +namespace :delete_production_log do + desc 'Delete production log every x days' + + task :delete_log => :environment do + FileList["log/production.log"].each do |file| + f = File.open(file, "w") + f.close + end + end + +end diff --git a/public/uploads/2-boneco.jpeg/boneco.jpeg b/public/uploads/2-boneco.jpeg/boneco.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..9e9689bfded7dd64c2c13156c856a3352e0c8c13 Binary files /dev/null and b/public/uploads/2-boneco.jpeg/boneco.jpeg differ diff --git a/public/uploads/3-Guia_Portalmec.pdf/Guia_Portalmec.pdf b/public/uploads/3-Guia_Portalmec.pdf/Guia_Portalmec.pdf new file mode 100644 index 0000000000000000000000000000000000000000..cf0863dd0aaee2639f02c072c2ebbf82ba8b9e2a Binary files /dev/null and b/public/uploads/3-Guia_Portalmec.pdf/Guia_Portalmec.pdf differ diff --git a/public/uploads/3-boneco.jpeg/boneco.jpeg b/public/uploads/3-boneco.jpeg/boneco.jpeg new file mode 100644 index 0000000000000000000000000000000000000000..c8d0a0c21df7cb8eb891be049018a4fd104d7f95 Binary files /dev/null and b/public/uploads/3-boneco.jpeg/boneco.jpeg differ diff --git a/public/uploads/3-oculos-de-simulacao-alcool-vista-do-dia-a-taxa-de-08-15.jpg/oculos-de-simulacao-alcool-vista-do-dia-a-taxa-de-08-15.jpg b/public/uploads/3-oculos-de-simulacao-alcool-vista-do-dia-a-taxa-de-08-15.jpg/oculos-de-simulacao-alcool-vista-do-dia-a-taxa-de-08-15.jpg new file mode 100644 index 0000000000000000000000000000000000000000..52053ea4877a4ced754252ba64cbaa6ff600a259 Binary files /dev/null and b/public/uploads/3-oculos-de-simulacao-alcool-vista-do-dia-a-taxa-de-08-15.jpg/oculos-de-simulacao-alcool-vista-do-dia-a-taxa-de-08-15.jpg differ