Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added memory usuage check to monit config files for background jobs
Added _html fields for article table Add migration script for changes to article table
- Loading branch information
Showing
20 changed files
with
222 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php'); | ||
$configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true); | ||
sfContext::createInstance($configuration); | ||
|
||
$articles = Doctrine::getTable('Article')->findAll(); | ||
|
||
foreach ($articles as $article){ | ||
$article->setSummaryHtml(myUtil::markdown($article->getSummary())); | ||
$article->setQuestionHtml(myUtil::markdown($article->getQuestion())); | ||
$article->setFulldescriptionHtml(myUtil::markdown($article->getFulldescription())); | ||
$article->save(); | ||
} | ||
|
||
echo "Updated article html fields \n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
check process cache_update1 with pidfile /var/www/codelovely/jobs/run/cache-update-worker1.pid | ||
start = "/var/www/codelovely/jobs/cache-update.php start worker1" | ||
stop = "/var/www/codelovely/jobs/cache-update.php stop worker1" | ||
if totalmemory > 300 MB then restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
check process send_send1 with pidfile /var/www/codelovely/jobs/run/send-email-worker1.pid | ||
start = "/var/www/codelovely/jobs/send-email.php start worker1" | ||
stop = "/var/www/codelovely/jobs/send-email.php stop worker1" | ||
if totalmemory > 150 MB then restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
check process thumbnails_scraper1 with pidfile /var/www/codelovely/jobs/run/thumbnails-scraper-worker1.pid | ||
start = "/var/www/codelovely/jobs/thumbnails-scraper.php start worker1" | ||
stop = "/var/www/codelovely/jobs/thumbnails-scraper.php stop worker1" | ||
if totalmemory > 200 MB then restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.