mirror of
https://github.com/mthenw/frontail.git
synced 2026-04-26 02:05:57 +03:00
[GH-ISSUE #56] How can I use frontail to display log file output in my own website/view? #39
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/frontail#39
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @atljeremy on GitHub (Nov 10, 2015).
Original GitHub issue: https://github.com/mthenw/frontail/issues/56
I have an existing website that I'd like to be able to show log file output in. Instead of linking to the frontail
index.html, how can I configure frontail to work with my own website/view?I started poking around and I copied over the
app.jsandsocket.io.jsinto my own website, started the frontail service as a daemon, and tried launching my site. I get the following error in the console...For testing purposes I went into the
socket.io.jsand hardcoded all of theportoptions to 9001 and the error went away and no new errors showed up. However, I'm noticing the__NAMESPACE__placeholder isn't being set in my website. It does get set properly in the frontail index.html site. What sets this variable and how can I hook it up to my site?@mthenw commented on GitHub (Nov 13, 2015):
It's being set before sending index.html to client here (https://github.com/mthenw/frontail/blob/master/index.js#L52). So without that you won't be able to get log entries.
Maybe it would be easier to run frontail in a iframe?