Tweaks for deployment

This commit is contained in:
Kai Hendry
2014-07-14 01:13:14 +08:00
parent 9e5ae5bb05
commit 9c55c1e13f
2 changed files with 2 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ symlink ("../../grep.php", "grep.php");
if (strpos($id, '_') !== false) { if (strpos($id, '_') !== false) {
echo "<a href=\"http://$HTTP_HOST/u/$id\"><h1 class=\"alert alert-success\">Goto http://$HTTP_HOST/u/$id to grep!</h1></a>"; echo "<a href=\"http://$HTTP_HOST/u/$id\"><h1 class=\"alert alert-success\">Goto http://$HTTP_HOST/u/$id to grep!</h1></a>";
} else { } else {
echo "<a href=\"http://$id.$HTTP_HOST\"><h1 class=\"alert alert-success\">Goto http://$id.$HTTP_HOST to grep!</h1></a>"; echo "<a href=\"http://$HTTP_HOST/u/$id\"><h1 class=\"alert alert-success\">Goto http://$id.$HTTP_HOST to grep!</h1></a>";
} }
echo `sed -e "s,TIMESTAMP,$(date)," ../../greptweet.appcache > greptweet.appcache`; echo `sed -e "s,TIMESTAMP,$(date)," ../../greptweet.appcache > greptweet.appcache`;
@@ -43,4 +43,4 @@ echo `sed -e "s,TIMESTAMP,$(date)," ../../greptweet.appcache > greptweet.appcach
$logfile = "fetch-" . time() . ".log"; $logfile = "fetch-" . time() . ".log";
exec(sprintf("../../fetch-tweets.sh %s > %s 2>&1 &", $id, $logfile)); exec(sprintf("../../fetch-tweets.sh %s > %s 2>&1 &", $id, $logfile));
?> ?>
<p>Fetching tweets can take time! And it's limited by Twitter to 3200 maximum at any one time. Please view the <a href=/u/<?php echo "$id/$logfile";?>>logfile</a> to see it's progress.</p> <p>Fetching tweets can take time! And it's limited by Twitter to 3200 maximum at any one time. Please view the <a href=/u/<?php echo "$id/$logfile";?>>logfile</a> to see its progress.</p>

View File

@@ -44,7 +44,6 @@
<footer> <footer>
<p>Please <a href="https://github.com/kaihendry/Greptweet">report issues and contribute on Github</a> :)</p> <p>Please <a href="https://github.com/kaihendry/Greptweet">report issues and contribute on Github</a> :)</p>
<p><span class="label-danger label">Move to nginx</span> To fix <a href="https://github.com/kaihendry/greptweet/issues/43">#43</a>, I have moved greptweet to a new ext4 based server running nginx. When creating a new account, nginx will timeout on long running processes. The fetch should still work, but we need to refactor the UX.</p>
<p>Version: <a href=https://github.com/kaihendry/Greptweet/commit/<?php include("version.txt"); ?>> <p>Version: <a href=https://github.com/kaihendry/Greptweet/commit/<?php include("version.txt"); ?>>
<?php include("version.txt"); ?> <?php include("version.txt"); ?>
</a></p> </a></p>