Skip to content
Accounting software app built on top of activeadmin
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
bin
config
db
docs
lib
log
public
spec
vendor/assets
.env.sample
.gitignore
Gemfile
Gemfile.lock
LICENSE
Procfile
README.md
Rakefile
app.json
config.ru
docker-compose.yml.sample

README.md

Build Status Code Climate Test Coverage Issue Count Deploy

Running

$ cp docker-compose.yml.sample docker-compose.yml

Edit docker-compose.yml according to your needs, for example: remove heroku configuration if you will not use heroku.

$ cp config/database.yml.sample config/database.yml
$ docker-compose build && docker-compose pull
$ docker-compose run --rm -u root web bash -c "mkdir -p /bundle/vendor && chown ruby /bundle/vendor"
$ docker-compose run --rm web bundle install
$ docker-compose run --rm web bundle exec rake db:create
$ docker-compose run --rm web bundle exec rake db:migrate

Backup from Heroku

Auth

$ docker run --rm -it -v heroku_home:/root dmitryrck/heroku login

Backup

Create a backup:

$ docker run --rm -v heroku_home:/root dmitryrck/heroku heroku pg:backups capture -a app-name-1234

Download backup:

$ wget $(docker run --rm -v heroku_home:/root dmitryrck/heroku heroku pg:backups public-url -a app-name-1234) -O latest.dump

Restore backup

$ docker-compose run --rm web bundle exec rake db:drop
$ docker-compose run --rm web bundle exec rake db:create
$ docker-compose run --rm db pg_restore -U postgres -h db -O -d organize2_development < /app/latest.dump
You can’t perform that action at this time.