From b1a266b577018496ddbdf7decdffd7db882faf1c Mon Sep 17 00:00:00 2001 From: Alisha Evans Date: Wed, 6 Sep 2023 12:34:49 -0500 Subject: [PATCH 1/3] add instructions for accessing hyku.test on windows machines --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index aad9a886b..e1bf078ca 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,15 @@ dory up docker-compose up web ``` -This command starts the whole stack in individual containers allowing Rails to be started or stopped independent of the other services. Once that starts (you'll see the line `Passenger core running in multi-application mode.` to indicate a successful boot), you can view your app in a web browser with at either hyku.test or localhost:3000 (see above). When done `docker-compose stop` shuts down everything. +This command starts the whole stack in individual containers allowing Rails to be started or stopped independent of the other services. Once that starts (you'll see the line `Passenger core running in multi-application mode.` or `Listening on tcp://0.0.0.0:3000` to indicate a successful boot), you can view your app in a web browser at either hyku.test or localhost:3000 (see above). When done `docker-compose stop` shuts down everything. + +_NOTE: if you're on a Windows machine, dory is running but you're unable to access hyku.test, try the steps below:_ + - Run this in the terminal: `ip addr | grep eth0 | grep inet` + - Copy the first IP address from the result in your terminal + - Use the steps under "Change the File Manually" at [this link](https://www.hostinger.co.uk/tutorials/how-to-edit-hosts-file#:~:text=Change%20the%20File%20Manually,-Press%20Start%20and&text=Once%20in%20Notepad%2C%20go%20to,space%2C%20then%20your%20domain%20name) to open your host file + - At the bottom of the host file add this line: ` hyku.test` + - Save + _You may or may not need to restart your server_ #### Tests in Docker From b83495c8c168bbb7d517c828b469591dc4729e62 Mon Sep 17 00:00:00 2001 From: Alisha Evans Date: Wed, 6 Sep 2023 13:06:22 -0500 Subject: [PATCH 2/3] refctor the windows readme comment into its own section --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e1bf078ca..83b7e2218 100644 --- a/README.md +++ b/README.md @@ -59,13 +59,13 @@ docker-compose up web This command starts the whole stack in individual containers allowing Rails to be started or stopped independent of the other services. Once that starts (you'll see the line `Passenger core running in multi-application mode.` or `Listening on tcp://0.0.0.0:3000` to indicate a successful boot), you can view your app in a web browser at either hyku.test or localhost:3000 (see above). When done `docker-compose stop` shuts down everything. -_NOTE: if you're on a Windows machine, dory is running but you're unable to access hyku.test, try the steps below:_ - - Run this in the terminal: `ip addr | grep eth0 | grep inet` - - Copy the first IP address from the result in your terminal - - Use the steps under "Change the File Manually" at [this link](https://www.hostinger.co.uk/tutorials/how-to-edit-hosts-file#:~:text=Change%20the%20File%20Manually,-Press%20Start%20and&text=Once%20in%20Notepad%2C%20go%20to,space%2C%20then%20your%20domain%20name) to open your host file - - At the bottom of the host file add this line: ` hyku.test` - - Save - _You may or may not need to restart your server_ +#### Troubleshooting on Windows +1. Dory is running but you're unable to access hyku.test: + - Run this in the terminal: `ip addr | grep eth0 | grep inet` + - Copy the first IP address from the result in your terminal + - Use the steps under "Change the File Manually" at [this link](https://www.hostinger.co.uk/tutorials/how-to-edit-hosts-file#:~:text=Change%20the%20File%20Manually,-Press%20Start%20and&text=Once%20in%20Notepad%2C%20go%20to,space%2C%20then%20your%20domain%20name) to open your host file + - At the bottom of the host file add this line: ` hyku.test` + - Save (_You may or may not need to restart your server_) #### Tests in Docker From 6bfdc32af886e0ca569a07994af1fa0e130c21db Mon Sep 17 00:00:00 2001 From: Alisha Evans Date: Wed, 6 Sep 2023 13:07:19 -0500 Subject: [PATCH 3/3] add note on adding files to a new work on windows quote> quote> co-authored-by: summer --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 83b7e2218..1be23b504 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,9 @@ This command starts the whole stack in individual containers allowing Rails to b - Use the steps under "Change the File Manually" at [this link](https://www.hostinger.co.uk/tutorials/how-to-edit-hosts-file#:~:text=Change%20the%20File%20Manually,-Press%20Start%20and&text=Once%20in%20Notepad%2C%20go%20to,space%2C%20then%20your%20domain%20name) to open your host file - At the bottom of the host file add this line: ` hyku.test` - Save (_You may or may not need to restart your server_) - +2. When creating a work and adding a file, you get an internal server error due to ownership/permissions issues of the tmp directory: + - Gain root access to the container (in a slightly hacky way, check_volumes container runs from root): `docker compose run check_volumes bash` + - Change ownership to app: `chown -R app:app /app/samvera/hyrax-webapp` #### Tests in Docker The full spec suite can be run in docker locally. There are several ways to do this, but one way is to run the following: