db
This commit is contained in:
parent
c762193519
commit
a7d52c2ec7
@ -40,9 +40,14 @@
|
||||
|
||||
-@article= Article.new(:enabled => true, :frontpage => true,:end_at => (actu["end_at"] != "0000-00-00 00:00:00" ? actu["end_at"] : "2010-01-01 00:00:00"), :published_at => (actu["start_at"] != "0000-00-00 00:00:00" ? actu["start_at"] : "2010-01-01 00:00:00"), :updated_at => actu["updated_at"], :created_at => actu["created_at"],:title => actu["title"],:description => HTMLEntities.new.decode(actu["description"]) )
|
||||
|
||||
|
||||
-begin
|
||||
-rep = false
|
||||
-rep = @article.save
|
||||
-rescue
|
||||
%h2 erreur
|
||||
=debug @article
|
||||
|
||||
-if @article.save
|
||||
-if rep
|
||||
-content = ""
|
||||
-begin
|
||||
|
||||
|
@ -7,4 +7,4 @@ stdout_path "/home/web/#{@rails_app}/shared/unicorn.log"
|
||||
|
||||
listen "/home/web/#{@rails_app}/shared/unicorn.sock"
|
||||
worker_processes 2
|
||||
timeout 600
|
||||
timeout 6000
|
Loading…
x
Reference in New Issue
Block a user