You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 19, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ rails new example_with_admin --database mysql --skip-bundle
21
21
Then we edit `Gemfile` to add gems we need:
22
22
23
23
```ruby
24
-
gem 'go-on-rails', '~> 0.1.11'
24
+
gem 'go-on-rails', '~> 0.3.0'
25
25
gem 'devise'
26
26
gem 'rails_admin', '~> 1.2'
27
27
gem 'cancancan', '~> 2.0'
@@ -106,10 +106,10 @@ r.GET("/", c.IndexHandler)
106
106
r.GET("/posts/:id", c.ShowHandler)
107
107
```
108
108
109
-
Run the server on port 4000:
109
+
Run the server(listen the port 4000 by default):
110
110
111
111
```bash
112
-
go run main.go -port 4000
112
+
go run main.go
113
113
```
114
114
115
115
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
255
255
256
256
### Try the new views
257
257
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:
259
259
260
260
```bash
261
-
go run main.go --port 4000
261
+
go run main.go
262
262
```
263
263
264
264
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