Coder Social home page Coder Social logo

Failed to parse port as integer: prod about cmd HOT 5 CLOSED

revel avatar revel commented on June 5, 2024
Failed to parse port as integer: prod

from cmd.

Comments (5)

brendensoares avatar brendensoares commented on June 5, 2024 1

Closing this pending the merge of #78. Thanks @Fyb3roptik for your help in describing this bug.

from cmd.

pedromorgan avatar pedromorgan commented on June 5, 2024

Sorry trying to triarge this.. but from what u explain..

// the / after my-app is a problem ?
revel run my-app/ prod
revel run my-app prod

from cmd.

brendensoares avatar brendensoares commented on June 5, 2024

@pedromorgan basically, if you don't have a slash in the first arg it interprets it as a run mode. Related code 1:

case 1:
	// Possibile combinations
	// 1. revel run [import-path]
	// 2. revel run [port]
	// 3. revel run [run-mode]
	if strings.Contains(args[0], "/") ||

Related code 2:

case 2:
	// Possibile combinations
	// 1. revel run [import-path] [run-mode]
	// 2. revel run [import-path] [port]
	// 3. revel run [run-mode] [port]
	if strings.Contains(args[0], "/") {

from cmd.

brendensoares avatar brendensoares commented on June 5, 2024

@jeevatkm added this code in order to support revel run without explicitly providing an app's package path; it's determined by the current working directory and if it is nested inside the $GOPATH.

I think the fix for this issue is to not require the string format to include a slash, but rather to test the argument to see if it resolves to an actual path.

from cmd.

Fyb3roptik avatar Fyb3roptik commented on June 5, 2024

Glad I could help! Love the framework. Keep up the great work guys!

from cmd.

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.