Comments (5)
Worth noting: as far as I can tell, the port is taken up by Bonjour, a core service of the OS. So this isn’t just contention with another user application, it’s conflicting with the OS.
from grip.
Oh, it actually does allow a different port. The syntax is simply
$ grip 8080
or
$ grip AUTHORS.md 8080
to run with a different file.
Thanks for your interest, @klmr!
from grip.
Sure, but I’d like to make this configurable so that I can simply use grip
and don’t have to specify the port every time.
from grip.
Oh ok, gotcha. Apologies.
Re-opening this as an enhancement. The default port is currently Flask's default. I'm not sure it's worth changing that, but it's definitely worth having a .griprc
or something.
This work will tie in nicely with #38, which also involves moving user-level files to the right place.
from grip.
A configuration file is now available with the changes made for #38 and #61.
You can now change the default port by creating a ~/.grip/settings.py
file and adding PORT = 8080
(or whatever port you want to use).
This has also been documented in 4f91f11.
Hope this helps!
from grip.
Related Issues (20)
- Enable toggling dark mode, light mode HOT 2
- Add `dark-mode` flag to view mark down content in dark mode HOT 3
- `safe_join` in Flask is deprecated HOT 3
- Add server killing functionality HOT 2
- Feature request:math HOT 4
- Does this send user content to github? HOT 1
- Missing support for WARNING and NOTE formatting HOT 4
- Apt package fails with error on Ubuntu 22.04
- Project dependencies may have API risk issues
- Question: navigation
- table of contents: link to sections
- Spelling of "Trust Over IP" HOT 1
- There is no longer any need for the hack, as GitHub now supports [LaTeX equations in Markdown](https://github.blog/changelog/2022-05-19-render-mathematical-expressions-in-markdown/) natively using MathJax. It would be great, however, if grip could display such equations correctly in its preview.
- grip reports not finding README (but does not try to open that file)
- Create CONTRIBUTION.md to guide open source developers to contribute to this project
- Render only difference
- grip is not working w/ latest flask and werkzeug versions HOT 2
- Use grip --export in flask.
- Having issues with latest release, 4.6.2 HOT 1
- Tag for 4.6.2 missing HOT 1
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 grip.