This commit is contained in:
Nicolas Bally 2013-10-01 00:04:26 +02:00
parent c762193519
commit a7d52c2ec7
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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