Launching OnDemand when home directory does not exist

That experiment failed. However, there appears to be another solution. A modification to nginx_stage/lib/nginx_stage/views/pun_config_view.rb and nginx_stage/templates/pun.conf.erb to show a warning page if the home directory was not found. Along with this diabeling the check for the existence of the home directory in nginx_stage/lib/nginx_stage/generator_helpers.rb.

The result is this workflow. When launching OnDemand with an account that does not have a home directory created, you would see this page:

  1. Access OnDemand with a user that has no home directory:

  2. Click Open Shell to create home directory which opens the shell app:

  3. Click Restart Web Server:

Since this is not a dynamic page like the “init app page”, we could look into generating a copy of this on the fly and storing it with the pun config, which could provide sites more control over customization.

I will share the code modifications required in a separate comment (or update this one).