Comments (5)
Closing this pending the merge of #78. Thanks @Fyb3roptik for your help in describing this bug.
from cmd.
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.
@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], "/") ||
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.
@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.
Glad I could help! Love the framework. Keep up the great work guys!
from cmd.
Related Issues (20)
- Could not find import issue HOT 1
- Can't create a new app on Windows HOT 3
- Support go modules (go.mod) instead of dep HOT 4
- Create docker image or dockerfile
- revel package HOT 1
- Failed to find Revel version HOT 8
- Mode flag failing HOT 2
- Arg types in generated routes.go and run.go HOT 4
- test suite issue
- Inconsistent behavoir between revel run and revel test
- Failed to parse port as integer: %!s(int=-1) HOT 2
- support go modules, panic: runtime error: invalid memory address or nil pointer dereference HOT 1
- If the test command fails to assert, set the Exit Status to non-zero.
- build command generates unnecessary files HOT 1
- Harness Compilation error page has status 200 OK
- command not found HOT 3
- Dependency not found - github.com/myesui/uuid HOT 3
- revel run nil pointer dereference HOT 2
- Installation command doesn't work HOT 1
- Validation Key Index Line Number Mismatch
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 cmd.