|
|\_ app
|...
|\_ docker
| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rails:4.2.3 | |
MAINTAINER Renato Filho <[email protected]> | |
ENV HOME /home/app | |
ENV RAILS_ENV development | |
RUN useradd -m -s /bin/bash app | |
RUN gem install -N bundler |
- Change your database RDS instance security group to allow your machine to access it.
- Add your ip to the security group to acces the instance via Postgres.
- Make a copy of the database using pg_dump
$ pg_dump -h <public dns> -U <my username> -f <name of dump file .sql> <name of my database>
- you will be asked for postgressql password.
- a dump file(.sql) will be created
- Restore that dump file to your local database.
- but you might need to drop the database and create it first
$ psql -U <postgresql username> -d <database name> -f <dump file that you want to restore>
- the database is restored
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
restart_sidekiq: &RESTART_SIDEKIQ | |
mode: "000755" | |
content: | | |
#!/bin/bash | |
initctl restart sidekiq || initctl start sidekiq | |
ln -sf /var/app/current/log/sidekiq.log /var/app/containerfiles/logs/sidekiq.log | |
mute_sidekiq: &MUTE_SIDEKIQ | |
mode: "000755" | |
content: | |