Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/molekilla/rutha_deploy
rutha staging and deployment vagrant environment
https://github.com/molekilla/rutha_deploy
Last synced: about 1 month ago
JSON representation
rutha staging and deployment vagrant environment
- Host: GitHub
- URL: https://github.com/molekilla/rutha_deploy
- Owner: molekilla
- License: mit
- Created: 2015-02-01T15:09:36.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-09T16:59:47.000Z (almost 10 years ago)
- Last Synced: 2024-04-10T02:56:47.029Z (9 months ago)
- Size: 145 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rutha_deploy
rutha staging and deployment vagrant environment### How to
#### Security
NEVER push keys to a public repo. We dearly recommend to clone to a private repo.
#### Playbook settings
Configure app settings
```ruby
# Ports
http_port: 80
https_port: 443# nginx
domain: disrupting.com
ssl_name: disrupting.comlocal_api_port: 3002
local_fe_port: 3005timestamp: "{{ ansible_date_time.epoch }}"
# rutha
app_name: disrupting_app
app_repo: [email protected]:molekilla/rutha.git
app_branch: release0.1.0
app_version: v0.1.0
app_env:
NODE_ENV: production```
#### SSL
##### Stage local
`sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout domain.key -out domain.crt`##### Production
Purchase SSL and add cert and private key in provisioning/roles/nginx/files/domain_name.key | .crt
#### Using rutha_deploy with rutha
1. add deploySettings to ui/Gruntfile.js
```javascript
data: {
deploySettings: {
ruthaDeploy: '/home/rutha_user/rutha_deploy',
playbook: '/home/rutha_user/provisioning/playbook.yml',
hosts: {
production: {
name: 'aws',
sshKey: '/home/rutha_user/site.pem',
remoteUser: 'app'
},
staging: {
name: 'azure',
sshKey: '/home/rutha_user/staging.pem',
remoteUser: 'app'
},
vagrant: {
name: 'all',
remoteUser: 'vagrant'
}
}
},
}
```2. Run command
* `grunt stagelocal` provisions a local Vagrant machine
* `grunt staging` provisions staging environment
* `grunt deploy` provisions production environment