From ea6327a515ac457f01fc52a6d92ab4b73ae43e9e Mon Sep 17 00:00:00 2001 From: botmtl Date: Thu, 7 Sep 2017 12:07:04 -0400 Subject: [PATCH] RC3 --- DeleteCache.cmd | 2 ++ README.MD | 19 ++++++++++++++++++- deploy.cmd | 20 +++++++++++++++----- forceUpdateFeeds.cmd | 4 ++++ updateFeeds.cmd | 2 +- 5 files changed, 40 insertions(+), 7 deletions(-) create mode 100644 DeleteCache.cmd create mode 100644 forceUpdateFeeds.cmd diff --git a/DeleteCache.cmd b/DeleteCache.cmd new file mode 100644 index 0000000..5a6ad4c --- /dev/null +++ b/DeleteCache.cmd @@ -0,0 +1,2 @@ +cd /d D:\home\site\wwwroot\cache +rd /s /q . diff --git a/README.MD b/README.MD index 06fe351..14e08f2 100644 --- a/README.MD +++ b/README.MD @@ -1,2 +1,19 @@  -[![Deploy to Azure](http://azuredeploy.net/deploybutton.png)](https://azuredeploy.net/) \ No newline at end of file +[![Deploy to Azure](http://azuredeploy.net/deploybutton.png)](https://azuredeploy.net/) + +# READ THIS before you deploy +If you are having issues with DEPLOYEMENT, file a [ISSUE here, on github](https://github.com/botmtl/ttrss-azure-deployment/issues). DO NOT use the Tiny-Tiny RSS discussion board for deployement issues. + +Initial username and password are admin/password. Change that ASAP. + +This Tiny-Tiny RSS deployement is made on an UNSUPORTED PLATFORM. If you are having issues with Tiny-Tiny RSS, DO NOT post in the main forum, use the [UNSUPPORTED-PLATFORMS](https://discourse.tt-rss.org/c/tiny-tiny-rss/unsupported-platforms/) section of the forum. Clearly state the platform you are using (IIS/mysql) and your provider (Azure) and the the issue you are having. If you are unsure, create an [issue here](https://github.com/botmtl/ttrss-azure-deployment/issues) first and I will tell you if this needs the tt-rss forum or not. + +# How is this deployement different than the [BITNAMI deployement](https://azuremarketplace.microsoft.com/en-us/marketplace/apps/bitnami.tinytinyrss?tab=Overview)? +- This deployement does not create or use a (costly) virtual machine. + +# Free? +- This deployement uses a standard Web-App with a Mysql-In-App database. +- Feed updates are scheduled with the WebJobs module ("0 */4 * * *") +- These Azure modules are free to use (this project can be deployed on a student [Microsoft Imagine](https://imagine.microsoft.com/) subscription). +- Usual restrictions apply (1Tb disk space and you can't abuse your free default vm without it disabling itself until the end of the month). + diff --git a/deploy.cmd b/deploy.cmd index 618fdd3..7ec2212 100644 --- a/deploy.cmd +++ b/deploy.cmd @@ -11,9 +11,19 @@ copy d:\home\site\repository\config.php d:\home\site\wwwroot REM deploy database mkdir d:\home\site\deployments\tools\PostDeploymentActions -copy InitializeDatabase.cmd d:\home\site\deployments\tools\PostDeploymentActions +copy d:\home\site\repository\InitializeDatabase.cmd d:\home\site\deployments\tools\PostDeploymentActions + +REM Jobs +mkdir d:\home\site\wwwroot\app_data\jobs\continuous\updateFeeds +copy d:\home\site\repository\updateFeeds.cmd d:\home\site\wwwroot\app_data\jobs\continuous\updateFeeds\updateFeeds.cmd +copy d:\home\site\repository\settings.job d:\home\site\wwwroot\app_data\jobs\continuous\updateFeeds\settings.job + +mkdir d:\home\site\wwwroot\app_data\jobs\triggered\DeleteCache +copy d:\home\site\repository\DeleteCache.cmd d:\home\site\wwwroot\app_data\jobs\triggered\DeleteCache\DeleteCache.cmd + +mkdir d:\home\site\wwwroot\app_data\jobs\triggered\forceUpdateFeeds +copy d:\home\site\repository\forceUpdateFeeds.cmd d:\home\site\wwwroot\app_data\jobs\triggered\forceUpdateFeeds\forceUpdateFeeds.cmd + +mkdir d:\home\site\wwwroot\app_data\jobs\triggered\resetDatabase +copy d:\home\site\repository\InitializeDatabase.cmd d:\home\site\wwwroot\app_data\jobs\triggered\resetDatabase\resetDatabase.cmd -REM d:\home\site\wwwroot\app_data\jobs\triggered\updateFeeds -mkdir d:\home\site\wwwroot\app_data\jobs\triggered\updateFeeds -copy d:\home\site\repository\updateFeeds.cmd d:\home\site\wwwroot\app_data\jobs\triggered\updateFeeds\updateFeeds.cmd -copy d:\home\site\repository\settings.job d:\home\site\wwwroot\app_data\jobs\triggered\updateFeeds\settings.job diff --git a/forceUpdateFeeds.cmd b/forceUpdateFeeds.cmd new file mode 100644 index 0000000..4aef6ee --- /dev/null +++ b/forceUpdateFeeds.cmd @@ -0,0 +1,4 @@ +REM Wake up site +"D:\Program Files (x86)\Git\usr\bin\curl.exe" %WEBSITE_HOSTNAME% > nul +REM Update Feeds +"D:\Program Files (x86)\PHP\v7.0\php.exe" "D:\home\site\wwwroot\update.php" --feeds --force-update diff --git a/updateFeeds.cmd b/updateFeeds.cmd index 5407927..0a84a8c 100644 --- a/updateFeeds.cmd +++ b/updateFeeds.cmd @@ -1,4 +1,4 @@ REM Wake up site "D:\Program Files (x86)\Git\usr\bin\curl.exe" %WEBSITE_HOSTNAME% > nul REM Update Feeds -"D:\Program Files (x86)\PHP\v7.0\php.exe" "D:\home\site\wwwroot\update.php" --feeds \ No newline at end of file +"D:\Program Files (x86)\PHP\v7.0\php.exe" "D:\home\site\wwwroot\update.php" --feeds