-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Compile revel project without revel command-cli #1065
Comments
No, please use |
@jeevatkm Ok, the problem is that this build generate some files that are not compiled, is there anyway of compile everything inside the binary file? |
I couldn't understand.
Can you please explain in detail, what is the issue you're facing? |
Of course, for example the When I run
It generates the folow tree. This way my source code is exposed to the final user, I want that all files be compiled to the binary and no one source file be exposed, do you understand?
|
okay, I get it. So you want to exclude the |
yes.. but I can't because it causes error for today |
The static files like |
I understand. Actually, exclude feature is currently not exists. Can you please create an issue here with feature description for |
Of course @jeevatkm, thanks |
In the meantime, I do something like this to filter the files I don't want out from my archives:
|
Many thanks @ptman, so are the |
@mageddo well, we've had a production service running for almost a year running in a docker container without those .go files so I'm fairly confident that it works. They are just used when compiling the binary. I assume the archive contains the files because all of app/ is just copied there. |
@ptman Good, your command will be useful while the feature request is not developed. |
Just a note, you can delete most of what is included in archives (as alluded to here). The only files that are needed are used at runtime (go source files are not used at runtime. |
@brendensoares Good pointer. Later I understood it, at principle I think that the are used |
Is possible build and package revel project only with the go command?
The text was updated successfully, but these errors were encountered: