Skip to content

Commit

Permalink
Elastic Beanstalk support.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Aug 5, 2018
1 parent b19738a commit 863de05
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .ebextensions/01-epel.config
@@ -0,0 +1,3 @@
commands:
"01":
command: yum-config-manager --enable epel
9 changes: 9 additions & 0 deletions .ebextensions/02-redis.config
@@ -0,0 +1,9 @@
packages:
yum:
redis: []

commands:
"01":
command: chkconfig redis on
"02":
command: service redis start
5 changes: 5 additions & 0 deletions .ebextensions/03-logs.config
@@ -0,0 +1,5 @@
commands:
"01":
command: chkconfig awslogs on
"02":
command: service awslogs start
5 changes: 5 additions & 0 deletions .gitignore
Expand Up @@ -14,3 +14,8 @@ ubuntu-*-cloudimg-console.log
.powder
*.crt
*.key

# Elastic Beanstalk Files
.elasticbeanstalk/*
!.elasticbeanstalk/*.cfg.yml
!.elasticbeanstalk/*.global.yml
14 changes: 14 additions & 0 deletions README.md
Expand Up @@ -10,6 +10,20 @@ You can use this app freely at [rssbox.herokuapp.com](https://rssbox.herokuapp.c

[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/stefansundin/rssbox)

### Elastic Beanstalk

Create environment:
```
git tag -a -m "First deploy" eb-v1
eb init rssbox --platform "Ruby 2.5 (Puma)" --keyname id_rsa
eb create --single --instance_type t2.micro
```

Deploy with:
```
eb deploy --staged
```

### Configuration

You need to get API keys for the respective services and populate the environment variables, e.g. by using an [.env](.env.example) file.
Expand Down

0 comments on commit 863de05

Please sign in to comment.