File tree 4 files changed +23
-0
lines changed
4 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,6 @@ gem 'capistrano-bundler'
7
7
# ed25519
8
8
gem 'ed25519'
9
9
gem 'bcrypt_pbkdf'
10
+
11
+ # For previewing public directory locally with `bin/server`
12
+ gem 'webrick'
Original file line number Diff line number Diff line change 34
34
net-ssh (>= 2.8.0 )
35
35
ostruct
36
36
stringio (3.1.2 )
37
+ webrick (1.8.2 )
37
38
38
39
PLATFORMS
39
40
ruby
@@ -44,3 +45,7 @@ DEPENDENCIES
44
45
capistrano-bundler
45
46
ed25519
46
47
rdoc (>= 6.0.0.beta2 )
48
+ webrick
49
+
50
+ BUNDLED WITH
51
+ 2.5.17
Original file line number Diff line number Diff line change 31
31
* https://github.com/ruby/rurema-search
32
32
* https://github.com/rurema/generated-documents
33
33
34
+ ## Previewing ` public ` directory locally
35
+
36
+ 1 . Install dependencies: ` bundle install `
37
+ 2 . Run:
38
+ ```
39
+ bin/server
40
+ ```
41
+ 3 . Open http://localhost:8000/
42
+
34
43
## Production Environment
35
44
36
45
### Capstrano
Original file line number Diff line number Diff line change
1
+ #!/usr/bin/env ruby
2
+
3
+ require "webrick"
4
+
5
+ server = WEBrick ::HTTPServer . new ( Port : 8000 , DocumentRoot : 'public' )
6
+ server . start
You can’t perform that action at this time.
0 commit comments