Skip to content
Snippets Groups Projects
Commit b2023fb0 authored by ahcv19's avatar ahcv19 Committed by lmtd21
Browse files

Issue #25: CREATE task to clear log

parent d6e303aa
No related branches found
No related tags found
1 merge request!25Issue #25: CREATE task to clear log
Pipeline #32099 failed
......@@ -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:
......
......@@ -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
......
......@@ -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
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
public/uploads/2-boneco.jpeg/boneco.jpeg

420 KiB

File added
public/uploads/3-boneco.jpeg/boneco.jpeg

210 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment