-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,21 @@ | ||
## README | ||
|
||
This README would normally document whatever steps are necessary to get the | ||
application up and running. | ||
Following the [DHH Rails 5: Action Cable Demo](https://medium.com/@dhh/rails-5-action-cable-demo-8bba4ccfc55e) or [Railscast](http://railscasts-china.com/episodes/action-cable-rails-5) but confirm works at Windows! | ||
|
||
Things you may want to cover: | ||
Need Rails 5.0.0.beta2 or build from [master](https://github.com/Eric-Guo/rails/commits/pgac_test), for those want to build rails gems in windows, need [remove em-hiredis](https://github.com/Eric-Guo/rails/commit/21e834f324233cfb51f012223e747872e5e150a7). | ||
|
||
* Ruby version | ||
Thanks @maclover7 [PR to enable using PG as storage](https://github.com/rails/rails/pull/22950) and @matthewd [PR to remove EventMachine](https://github.com/rails/rails/pull/23152), it's now possible to starting using ActionCable in Windows. | ||
|
||
* System dependencies | ||
### Step to setup the PG DB in Windows | ||
|
||
* Configuration | ||
[Download](http://www.postgresql.org/download/windows/) and install, recommand PostgreSQL v9.4.5 | ||
|
||
* Database creation | ||
```bat | ||
psql -U postgres | ||
``` | ||
|
||
* Database initialization | ||
|
||
* How to run the test suite | ||
|
||
* Services (job queues, cache servers, search engines, etc.) | ||
|
||
* Deployment instructions | ||
|
||
* ... | ||
```psql | ||
CREATE USER pgac WITH PASSWORD 'only_need_in_windows'; | ||
CREATE DATABASE pgac_dev; | ||
GRANT ALL PRIVILEGES ON DATABASE pgac_dev to pgac; | ||
``` |