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:
parent
5e42e36d44
commit
ac3c12f574
3 changed files with 9 additions and 1 deletions
|
|
@ -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
2
.nvmrc
|
|
@ -1 +1 @@
|
|||
12.16
|
||||
12.16
|
||||
|
|
|
|||
|
|
@ -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" }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue