From 34143b556a18b906868c2f19b42249a87aaa3afe Mon Sep 17 00:00:00 2001 From: Tom de Bruijn Date: Fri, 23 Aug 2024 11:22:16 +0200 Subject: [PATCH] Open bash in the app directory Don't make me navigate to the app dir first all the time. That's where I have to go 99% of the time. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index f62135d4..1eb9842b 100644 --- a/Rakefile +++ b/Rakefile @@ -165,7 +165,7 @@ namespace :app do task :bash do @app = get_app puts "Starting bash in #{@app}" - run_command "cd #{@app} && docker-compose exec app /bin/bash" + run_command "cd #{@app} && docker-compose exec --workdir /app app /bin/bash" end desc "Attach to app and get a console"