https://github.com/luillyfe/deployment-manager
https://github.com/luillyfe/deployment-manager
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/luillyfe/deployment-manager
- Owner: luillyfe
- Created: 2020-06-05T00:24:05.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-08T06:32:52.000Z (about 6 years ago)
- Last Synced: 2025-08-30T12:36:42.263Z (10 months ago)
- Language: HTML
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Deployment Manager: A basic server in GO!
This guide shows how to deploy a very tiny, very small Server in go.
Just one file (OK just two, but you totally can pass all the properties defined in .properties file via manual input).
## Deploying to Google Cloud
```bash
gcloud deployment-manager deployments create qs-example \
--template deployment.jinja \
--properties $(cat '.properties' | tr '\n' ',') \
--preview
```
## About the repo
I cannot stress this enough but the only files you need for the deployment to work are: ´.properties´
and ´deployment.jinja´. The rest of the files are already included in the startup-script property
of the deployment.jinja file.
```yaml
.properties #key=value pair configs about deployment
deployment.jinja #Collections of resources to be deployed
goweb.service #Instructins for debian OS to start our service
main.go #Our server
startup.sh #The script is going to run as soon as the machine instance starts
```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
[MIT](https://choosealicense.com/licenses/mit/)