File tree 2 files changed +28
-2
lines changed
2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,34 @@ in your browser to access the preview.
70
70
71
71
** Note:** The build of the site will take several minutes.
72
72
73
+ ### Preview with Docker
74
+
75
+ Run the following
76
+
77
+ ``` sh
78
+ docker run -it --name ruby-lang -v $PWD :/www.ruby-lang.org -w /www.ruby-lang.org --network host ruby:2.6.1 sh -c " bundle install --without production && bundle exec rake serve"
79
+ ```
80
+
81
+ to generate the website and start a local web server
82
+
83
+
84
+ Open [ http://localhost:9292/ ] ( http://localhost:9292/ )
85
+ in your browser to access the preview.
86
+
87
+ ### Preview with Docker Compose
88
+
89
+ Run the following
90
+
91
+ ``` sh
92
+ docker-compose up
93
+ ```
94
+
95
+ to generate the website and start a local web server
96
+
97
+
98
+ Open [ http://localhost:9292/ ] ( http://localhost:9292/ )
99
+ in your browser to access the preview.
100
+
73
101
### Preview on Heroku
74
102
75
103
In case a build is not possible on your local machine
Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ services:
3
3
web :
4
4
container_name : ruby-lang
5
5
image : ruby:2.6.1
6
- environment :
7
- - RAILS_ENV=development
8
6
command : >
9
7
sh -c "bundle check || bundle install --without production &&
10
8
bundle exec rake build &&
You can’t perform that action at this time.
0 commit comments