Skip to content

Commit

Permalink
Add preview.app.github.dev to RAILS_DEVELOPMENT_HOSTS (#83)
Browse files Browse the repository at this point in the history
* Add preview.app.github.dev to RAILS_DEVELOPMENT_HOSTS

* Bump the template version
  • Loading branch information
joshaber authored Dec 12, 2022
1 parent 744878e commit 2425d88
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ruby-rails-postgres/.devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ RUN gem install rails webdrivers

# Default value to allow debug server to serve content over GitHub Codespace's port forwarding service
# The value is a comma-separated list of allowed domains
ENV RAILS_DEVELOPMENT_HOSTS=".githubpreview.dev,.app.github.dev"
ENV RAILS_DEVELOPMENT_HOSTS=".githubpreview.dev,.preview.app.github.dev,.app.github.dev"

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
Expand Down
2 changes: 1 addition & 1 deletion src/ruby-rails-postgres/devcontainer-template.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "ruby-rails-postgres",
"version": "1.1.3",
"version": "1.1.4",
"name": "Ruby on Rails & Postgres",
"description": "Develop Ruby on Rails applications with Postgres. Includes a Rails application container and PostgreSQL server.",
"documentationURL": "https://github.com/devcontainers/templates/tree/main/src/ruby-rails-postgres",
Expand Down
2 changes: 1 addition & 1 deletion test/universal/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ check "fish" fish --version
check "zsh" zsh --version

# Check env variable
check "RAILS_DEVELOPMENT_HOSTS is set correctly" echo $RAILS_DEVELOPMENT_HOSTS | grep ".githubpreview.dev,.app.github.dev"
check "RAILS_DEVELOPMENT_HOSTS is set correctly" echo $RAILS_DEVELOPMENT_HOSTS | grep ".githubpreview.dev,.preview.app.github.dev,.app.github.dev"

# Check that we can run a puppeteer node app.
yarn
Expand Down

0 comments on commit 2425d88

Please sign in to comment.