Code Monkey home page Code Monkey logo

Comments (10)

Yijia-Chen avatar Yijia-Chen commented on August 24, 2024 2

Okay now it works! I wasn't running them in the same directory. Thanks!

from nile.

martriay avatar martriay commented on August 24, 2024 1

Thanks for raising this! I'm on macOS but haven't stumbled upon this before. Would you be interested in opening a PR adding the feature @kanishkatn?

from nile.

kanishkatn avatar kanishkatn commented on August 24, 2024 1

@martriay Yes, would love to!

from nile.

milancermak avatar milancermak commented on August 24, 2024 1

Just FYI, there was a post on Reddit about it some time ago. Seems the port squatting can be disabled via System preferences.

from nile.

martriay avatar martriay commented on August 24, 2024 1

@Yijia-Chen hey there, bear in mind that merging it doesn't automatically makes it available since we'd have to also release a new version of nile. Until we release it, I suggest you clone the PR (or main when merged) and install it locally to use it today, now.

from nile.

fracek avatar fracek commented on August 24, 2024

At the moment it's not possible to change the host or port, we should do that.

Note: starknet devnet already supports this, we need to pass the host and port flags to it.

from nile.

Yijia-Chen avatar Yijia-Chen commented on August 24, 2024

Second this issue. #46 seems to have a good solution already; can someone please merge?

from nile.

Yijia-Chen avatar Yijia-Chen commented on August 24, 2024

I installed the newest commit including #46 using python -m pip install . in the project directory, and nile node now has the flag --port which works on 5001. However, nile deploy contract --alias contract_name still has no --port option, and when I run it after nile node, it gives me the error that port 5000 is occupied. Does the local nile deploy also use port 5000? Or am I doing something wrong here?

The detailed error message is as follows: subprocess.CalledProcessError: Command '['starknet', 'deploy', '--contract', 'artifacts/contract.json', '--gateway_url=http://localhost:5000/']' returned non-zero exit status 1. I am on macOS Monterey Version 12.0.1.

Can someone please help?

from nile.

ftupas avatar ftupas commented on August 24, 2024

Hi @Yijia-Chen , normally when you run nile node --port 5001 you'll have a node.json file with the corresponding gateway URL. No need to add the port when executing nile deploy as it will target whatever is saved in this file. However you do need to run it in the same directory when you did nile node, could you try again and see if it works on your end?

from nile.

martriay avatar martriay commented on August 24, 2024

I'm closing this issue since the feature is already in place.

from nile.

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.