3 ms·
This framework could be enough to tip me into a semi serious go powered side project, which i really must get the finger out and do! How should deployment work
by 3amOpsGuy 14y ago
This framework could be enough to tip me into a semi serious go powered side project, which i really must get the finger out and do!
How should deployment work for an app created in this framework?
From the "How Revel Works" page it mentions:
>> If the app compiled successfully, it runs the app ...<snip>...
Is it simply a case of lifting and dropping the binary (ensuring it's linker dependencies are satisfied on the dest host)?
Would the final artifact be deployable to google app engine?
- dmorsing 14y agoThe go compiler statically links it's binaries, so there are no external dependencies to worry about.
- robfig 14y agoI'm working on adding a "rev package" command to the command-line tool. It will create a zip file of the app and revel source directories, along with a script to run the app. It needs the source directories since templates and assets are kept within them. Also, it is frequently useful to have access to the source in production, e.g. for sending exception emails. The goal is to make deployment to a server without a Go environment very easy. EDIT: To answer your original question: in the current version, you must have a working Go installation to run your Revel app. Then: "rev run import/path/to/app prod". I am pretty sure that it will not work on GAE -- I realize this is an important/valuable use case and will investigate it in the future.
- 3amOpsGuy 14y agoYour direction sounds pretty much ideal. I'll keep checking in on this project. Meantime I've just installed go... Wish me luck!