Comments (4)
Ahhh okay, thank you I'll give these steps a try!! Yeah I was definitely expecting the localhost
launch to "just work" but I see the error of my ways... 😬 Appreciate your help, will let you know how it works out!
from slack-export-viewer.
What steps exactly did you use for setting this up? From what you've mentioned so far, it seems like you're serving content from slack-export-viewer on localhost:5000
on the server and somehow expecting that to hook up automatically to the Apache/mod_wsgi setup you have going. That's not quite going to work. 😛
If you want to use mod_wsgi specifically, you'll need to look into the instructions given here in the Flask docs: http://flask.pocoo.org/docs/0.11/deploying/mod_wsgi/
This will require writing just a few lines of code and knowing where to grab the configured app from. Essentially, you would would have to a different version of main
that just did configure_app and returned the Flask app object so that you could use it in the .wsgi file as is described in the Flask documentation linked above.
(This is all from my shallow understanding of how mod_wsgi works because I've never personally used it.)
from slack-export-viewer.
On the other hand...
If you want a simple no-frills solution, just run slack-export-viewer with the flags instead: slack-export-viewer -z <archive_path> --no-browser --ip 0.0.0.0 --port 80
to serve using the built-in werkzeug server directly, without having Apache server in front. Of course, this isn't recommended for production but that really depends on what you're use case is (if it's serving to only a handful of people and you don't care about exposing your Slack archive to the internet at large, this is fine).
from slack-export-viewer.
Another solution: Just use this to just get the HTML itself, and serve that using Apache or nginx directly..
from slack-export-viewer.
Related Issues (20)
- New release HOT 1
- Offline/local retrieval of data? HOT 1
- Error 500 / KeyError: 'ts' HOT 8
- Integration with slack-exporter?
- Access to local Host Denied HOT 3
- Not able to view the exported dump HOT 6
- slack-export-viewer fails at flask\__init__.py", line 60, in __getattr__ raise AttributeError(name) HOT 9
- Static HTML export fails with AttributeError: 'str' object has no attribute 'mkdir' HOT 5
- Nothing but a Blank Page
- UnicodeEncodeError: 'charmap' codec can't encode character '\u202f' in position 54: character maps to <undefined> encoding with 'cp437' codec failed HOT 4
- Resize sidebar
- slackdump exports aren't viewable using slack-export-viewer HOT 1
- [Feature Request] Allow updating the base URL for reverse proxies
- xxx.zip is not a zipfile
- Feature request: ignore join/leave messages
- Feature request: hide usernames
- CSS is missing when running without external sources
- Viewer will not open
- Bug encoding of urls
- Access to localhost was deniedYou don't have authorization to view this page. HTTP ERROR 403 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from slack-export-viewer.