-
Notifications
You must be signed in to change notification settings - Fork 3
Deployments
samb
currently supports direct deployments to Google app engine. samb
aims to support other cloud providers in the future.
Download and install the following command to generate the source code needed to deploy your samb
project to app engine.
go get github.com/cheikhshift/samb/cmd/samb-engine
Run the following command to generate the source needed for app engine.
samb-engine -file=<ENTRY POINT TO PROJECT> -project=<PATH TO PROJECT>
Once the source is generated, change your terminal's working directory to <PATH TO PROJECT>
/cmd/appengine. Then run the following command to create your project, if you haven't already :
The following command used is provided by Google. You can learn more about it here
gcloud app create
Deploy to app engine with command :
Troubleshooting : If your deployment fails, trying to find package : google.golang.org/appengine
, vendor in your dependencies. While in the appengine
directory, run dep -init
(if you haven't). Within the vendor directory, remove the copy of the project you are working on to have the latest version of your code deployed. You may also run dep
in your top level package and skip modifying the vendor folder.
gcloud app deploy