Skip to content

Commit dc4dc6c

Browse files
committed
Update
1 parent 620ae55 commit dc4dc6c

File tree

4 files changed

+28
-3
lines changed

4 files changed

+28
-3
lines changed

Dockerfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM ruby:2.6.3-stretch
2+
3+
RUN useradd rundoc
4+
RUN curl https://cli-assets.heroku.com/install-ubuntu.sh | sh
5+
6+
RUN apt-get clean && apt-get update && apt-get install -y locales nodejs
7+
8+
RUN locale-gen en_US.UTF-8
9+
ENV LC_ALL=C.UTF-8
10+
ENV LANG=en_US.UTF-8
11+
ENV LANGUAGE=en_US.UTF-8
12+
ENV DISABLE_SPRING=1
13+
14+
WORKDIR /home/rundoc
15+
RUN mkdir -p /home/rundoc/ && chown -R rundoc:rundoc /home/rundoc
16+
USER rundoc
17+
RUN mkdir -p /home/rundoc/workdir
18+
19+
RUN git config --global user.email "[email protected]"
20+
RUN git config --global user.name "Dev Eloper"
21+
22+
ADD Gemfile Gemfile.lock
23+
24+
RUN bundle install

rundoc.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Gem::Specification.new do |gem|
2525
gem.add_dependency 'selenium-webdriver', '~> 3'
2626

2727
gem.add_dependency 'aws-sdk-s3', '~> 1'
28+
gem.add_dependency 'dotenv'
2829

2930
gem.add_development_dependency "rake"
3031
gem.add_development_dependency "mocha"

test/fixtures/rails_5/rundoc.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ end
1818
Ruby on Rails is a popular web framework written in [Ruby](http://www.ruby-lang.org/). This guide covers using Rails 5 on Heroku. For information on running previous versions of Rails on Heroku, see the tutorial for [Rails 4.x](getting-started-with-rails4) or [Rails 3.x](getting-started-with-rails3).
1919

2020
```
21-
:::-- $ ruby -e "exit 1 unless RUBY_VERSION == '2.6.0'"
21+
:::-- $ ruby -e "exit 1 unless RUBY_VERSION == '2.6.3'"
2222
```
2323

2424
For this guide you will need:
@@ -158,7 +158,7 @@ Rails 5 requires Ruby 2.2.0 or above. Heroku has a recent version of Ruby instal
158158
```ruby
159159
:::-- $ sed -i'' -e '/^ruby/d' ./Gemfile
160160
:::-> file.append Gemfile#4
161-
ruby "2.6.0"
161+
ruby "2.6.3"
162162
```
163163

164164
You should also be running the same version of Ruby locally. You can check this by running `$ ruby -v`. You can get more information on [specifying your Ruby version on Heroku here](https://devcenter.heroku.com/articles/ruby-versions).

test/fixtures/rails_6/rundoc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Ruby on Rails is a popular web framework written in [Ruby](http://www.ruby-lang.
2525
For this guide you will need:
2626

2727
- Basic familiarity with Ruby/Rails and Git
28-
- A locally installed version of Ruby 2.2.0+, Rubygems, Bundler, and Rails 6+
28+
- A locally installed version of Ruby 2.5.0+, Rubygems, Bundler, and Rails 6+
2929
- A Heroku user account: [Signup is free and instant](https://signup.heroku.com/devcenter).
3030

3131
## Local setup

0 commit comments

Comments
 (0)