mirror of
https://github.com/thewesker/greptweet.git
synced 2025-12-21 20:41:06 -05:00
Tweaks for deployment
This commit is contained in:
@@ -35,7 +35,7 @@ symlink ("../../grep.php", "grep.php");
|
||||
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>";
|
||||
} 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`;
|
||||
@@ -43,4 +43,4 @@ echo `sed -e "s,TIMESTAMP,$(date)," ../../greptweet.appcache > greptweet.appcach
|
||||
$logfile = "fetch-" . time() . ".log";
|
||||
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>
|
||||
|
||||
@@ -44,7 +44,6 @@
|
||||
|
||||
<footer>
|
||||
<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"); ?>>
|
||||
<?php include("version.txt"); ?>
|
||||
</a></p>
|
||||
|
||||
Reference in New Issue
Block a user