Update config.hosts for GitPod (#8677)

* fake gitpod dockerfile commit

* install ruby 2.7.1 to different directory

* remove fakevar

* affix node version to 12.16.3

* try setting explicit version

* Add GitPod workspace URL to config.hosts

Co-authored-by: snackattas <zach.attas@gmail.com>
This commit is contained in:
Michael Kohl 2020-06-15 22:18:33 +07:00 committed by GitHub
parent 5e42e36d44
commit ac3c12f574
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View file

@ -2,8 +2,13 @@ FROM gitpod/workspace-postgres
# Install Ruby
ENV RUBY_VERSION=2.7.1
RUN rm /home/gitpod/.rvmrc && touch /home/gitpod/.rvmrc && echo "rvm_gems_path=/home/gitpod/.rvm" > /home/gitpod/.rvmrc
RUN bash -lc "rvm install ruby-$RUBY_VERSION && rvm use ruby-$RUBY_VERSION --default"
# Install Node
ENV NODE_VERSION=12.16.3
RUN bash -lc ". .nvm/nvm.sh && nvm install $NODE_VERSION"
# Install Redis.
RUN sudo apt-get update \
&& sudo apt-get install -y \

2
.nvmrc
View file

@ -1 +1 @@
12.16
12.16

View file

@ -75,6 +75,9 @@ Rails.application.configure do
config.action_mailer.perform_caching = false
config.hosts << ENV["APP_DOMAIN"] unless ENV["APP_DOMAIN"].nil?
if (gitpod_workspace_url = ENV["GITPOD_WORKSPACE_URL"])
config.hosts << URI.parse(gitpod_workspace_url).host
end
config.app_domain = "localhost:3000"
config.action_mailer.default_url_options = { host: "localhost:3000" }