https://github.com/express42/magrathea-reddit
https://github.com/express42/magrathea-reddit
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/express42/magrathea-reddit
- Owner: express42
- Created: 2018-08-23T17:28:41.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-24T09:53:20.000Z (almost 8 years ago)
- Last Synced: 2025-01-18T14:46:43.902Z (over 1 year ago)
- Language: Ruby
- Size: 41 KB
- Stars: 0
- Watchers: 19
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Monolith application
## Deploy using Capistrano
#### Requirements for the target host:
* Ruby (>2.2.0) installed via `rvm`
* MongDB
* ports `22` and `9292` should be reachable by you
#### Steps:
1. Install required gems:
`bundle install`
2. Set env vars:
```bash
export SERVER_IP= # public IP address of the target host
export REPO_NAME= # repo name to fetch the code from, e.g. Artemmkin/reddit
export DEPLOY_USER=deploy # username used to connect via SSH
```
3. Deploy using capistrano:
```bash
bundle exec cap production deploy:initial
```