You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some of the longer tasks in setup-wordpress.sh can occasionally fail due to connectivity issues. Currently, this causes the entire process to fail, leaving the developer with an unusable environment (in most cases, any command from within the container would trigger an error message that the "getcwd() command could not be executed"). This problem became evident while testing at WordCamp Nordic (a common problem at WordCamps is the lack of a stable internet connection).
We already covered for such failures in the SVN checkout process. However, we should probably add similar error handling to other processes from that file. While most other tasks are required (while SVN checkout not always is), this still has significant benefits:
By catching errors, we don't make the entire script fail. Apparently, having the script fail results in the environment being entirely broken.
The setup-wordpress.sh script is run on start up. So even if something crucial fails, we could add a note and ask the developer to simply restart, which would cause the necessary tasks to be executed again. This is much easier (and quicker!) than completely destroying the environment and recreating it.
You could even run the script manually again if you didn't want to restart.
Some of the longer tasks in
setup-wordpress.shcan occasionally fail due to connectivity issues. Currently, this causes the entire process to fail, leaving the developer with an unusable environment (in most cases, any command from within the container would trigger an error message that the "getcwd() command could not be executed"). This problem became evident while testing at WordCamp Nordic (a common problem at WordCamps is the lack of a stable internet connection).We already covered for such failures in the SVN checkout process. However, we should probably add similar error handling to other processes from that file. While most other tasks are required (while SVN checkout not always is), this still has significant benefits:
setup-wordpress.shscript is run on start up. So even if something crucial fails, we could add a note and ask the developer to simply restart, which would cause the necessary tasks to be executed again. This is much easier (and quicker!) than completely destroying the environment and recreating it.What do you think @westonruter?