Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to package a Revel application on Windows #575

Closed
uraza opened this issue Apr 11, 2014 · 3 comments
Closed

Fails to package a Revel application on Windows #575

uraza opened this issue Apr 11, 2014 · 3 comments
Assignees
Labels

Comments

@uraza
Copy link

uraza commented Apr 11, 2014

Hi,

I am currently writing a Go web app using Revel, I followed the tutorial to make the installation.
I can make my application run without any problem using

go run myapp

Now I want to run it on my server which does not have Go installed.
Revel provides the ability to build or package the app for deployment.
Whenever I run

go package myapp

I end up with an error message because the tool cannot access a given file.

Abort: Failed to parse template D:\dev\go\src/cmd/revel/package_run.sh.template: open D:\dev\go\src/cmd/revel/package_run.sh.template: Le chemin d’accès spécifié est introuvable.

The tool is looking for the "cmd" folder in go\src\ whereas it should use the Revel installation location i.e. go\src\github.com\revel (this is where "go get" put it).
Copying and pasting the "cmd" folder at the proper location works but is not very clean.

Did I miss something during the installation?
Any feedback on this issue is very welcome.

@pushrax
Copy link
Contributor

pushrax commented Apr 11, 2014

Looks like there's an issue with path separators again cc @revel/core

@uraza
Copy link
Author

uraza commented Apr 11, 2014

You mean because of the usage of backslashes on one side and slashes on the other side?

The path is wrong anyway: it should be "D:\dev\go\src\github.com\revel\cmd\revel\package_run.sh.template"
instead of
"D:\dev\go\src\cmd\revel\package_run.sh.template".

@pushrax
Copy link
Contributor

pushrax commented Apr 11, 2014

Issue with the command line tools only, moved to revel/cmd#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants