Skip to content

Commit a22d9e7

Browse files
Support having Rails project in a subdirectory
By setting the `RELATIVE_RAILS_ROOT` environment variable.
1 parent 5d1feaf commit a22d9e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoints/rails-entrypoint

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
# Remove rails server PID file, that is sometimes not properly removed at shutdown
44
# as instructed in https://docs.docker.com/compose/rails/
5-
rm -f /app/tmp/pids/server.pid
5+
rm -f /app/${RELATIVE_RAILS_ROOT}/tmp/pids/server.pid
66

77
exec "$@"

0 commit comments

Comments
 (0)