https://github.com/express42/reddit
https://github.com/express42/reddit
otus
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/express42/reddit
- Owner: express42
- Created: 2018-02-01T07:24:05.000Z (over 8 years ago)
- Default Branch: monolith
- Last Pushed: 2022-12-01T00:58:16.000Z (over 3 years ago)
- Last Synced: 2025-03-31T08:39:09.179Z (over 1 year ago)
- Topics: otus
- Language: Ruby
- Size: 65.4 KB
- Stars: 5
- Watchers: 18
- Forks: 31
- Open Issues: 8
-
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
```