Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit d41b3c8

Browse files
committed
update README
1 parent baf900a commit d41b3c8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ rails new example_with_admin --database mysql --skip-bundle
2121
Then we edit `Gemfile` to add gems we need:
2222

2323
```ruby
24-
gem 'go-on-rails', '~> 0.1.11'
24+
gem 'go-on-rails', '~> 0.3.0'
2525
gem 'devise'
2626
gem 'rails_admin', '~> 1.2'
2727
gem 'cancancan', '~> 2.0'
@@ -106,10 +106,10 @@ r.GET("/", c.IndexHandler)
106106
r.GET("/posts/:id", c.ShowHandler)
107107
```
108108

109-
Run the server on port 4000:
109+
Run the server(listen the port 4000 by default):
110110

111111
```bash
112-
go run main.go -port 4000
112+
go run main.go
113113
```
114114

115115
Now you can visit the `index` page on: http://localhost:4000.
@@ -255,10 +255,10 @@ We just use its default configuration that allows all the Origins access our Go
255255

256256
### Try the new views
257257

258-
In one terminal you set up the Go server in port 4000 under the `go_app` directory:
258+
In one terminal you set up the Go server under the `go_app` directory:
259259

260260
```bash
261-
go run main.go --port 4000
261+
go run main.go
262262
```
263263

264264
In another terminal run `rails s` to set up the Rails server in default port 3000, and meanwhile to get the `./bin/webpack-dev-server` server up in a third terminal.

0 commit comments

Comments
 (0)