Closed ssaunier closed 4 months ago
@Aquaj are you fine with using your SSH key as well to get access to the instances?
ℹ️ FYI I moved the two database from Heroku to Dokku with:
pg_dump -Fp --clean --no-acl --no-owner $(heroku config:get DATABASE_URL --app lewagon-aoc) > tmp/lewagon-aoc.heroku.dump
ssh aoc postgres:expose aoc
ssh aoc postgres:connect aoc < tmp/lewagon-aoc.heroku.dump
ssh aoc postgres:unexpose aoc
pg_dump -Fp --clean --no-acl --no-owner $(heroku config:get DATABASE_URL --app lewagon-aoc-s) > tmp/lewagon-aoc-s.heroku.dump
ssh aoc postgres:expose aoc-staging
ssh aoc postgres:connect aoc-staging < tmp/lewagon-aoc-s.heroku.dump
ssh aoc postgres:unexpose aoc-staging
@Aquaj FYI you should have access to the apps :)
This is the alias I set up in my .zshrc
:
alias aoc="ssh dokku@aoc.lewagon.engineering"
Commands now look like:
aoc logs aoc --tail # aoc logs aoc-staging --tail
aoc config aoc # aoc config aoc-staging
aoc -t run aoc rails c # aoc -t run aoc rails c
aoc postgres:info aoc # aoc postgres:info aoc-staging
aoc -t postgres:connect aoc # aoc -t postgres:connect aoc-staging
Moving the two apps from Heroku to Dokku (running on a dedicated
DEV1-S
instance ataoc.lewagon.engineering
):I added @pil0u's SSH key with:
If more people need access, ping me here.
I advise you to open your
~/.ssh/config
and add:That way you can run simpler commands like:
This PR adds two GitHub actions to have CI/CD of:
aoc.lewagon.community
onrelease
branchaoc-staging.lewagon.community
onmain
branch