Giter Club home page Giter Club logo

Comments (5)

klmr avatar klmr commented on July 19, 2024

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.

joeyespo avatar joeyespo commented on July 19, 2024

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.

klmr avatar klmr commented on July 19, 2024

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.

joeyespo avatar joeyespo commented on July 19, 2024

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.

joeyespo avatar joeyespo commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.