Skip to content

Commit

Permalink
Revert "Better default command"
Browse files Browse the repository at this point in the history
This reverts commit b137bbd.
  • Loading branch information
ankane committed Jun 7, 2020
1 parent b137bbd commit cc0ffc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.yml
Expand Up @@ -7,7 +7,7 @@
#
# we *highly recommend* you use sslmode=verify-full when possible
# see https://ankane.org/postgres-sslmode-explained for more info
from: $(echo $DATABASE_URL)?sslmode=require
from: $(some_command)?sslmode=require

# destination database URL
to: postgres://localhost:5432/myapp_development
Expand Down
2 changes: 1 addition & 1 deletion lib/pgsync/init.rb
Expand Up @@ -43,7 +43,7 @@ def perform

# create file
contents = File.read(__dir__ + "/../../config.yml")
contents.sub!("$(echo $DATABASE_URL)", "$(heroku config:get DATABASE_URL)") if heroku?
contents.sub!("$(some_command)", "$(heroku config:get DATABASE_URL)") if heroku?
File.write(file, contents % {exclude: exclude})

log "#{file} created. Add your database credentials."
Expand Down

0 comments on commit cc0ffc9

Please sign in to comment.