Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Norris committed Jun 25, 2020
1 parent 01f3bb3 commit 5209e26
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 159 deletions.
186 changes: 28 additions & 158 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/javascript/packs/constants.js.erb
Expand Up @@ -2,7 +2,7 @@
// src/constants/index.js

export const API_ROOT = "<%= ENV['API_ROOT_URL'] || 'http://localhost:3000' %>";
export const API_WS_ROOT = "<%= ENV['API_WS_ROOT'] || 'ws://localhost:3000/cable' %>";
export const API_WS_ROOT = "<%= ENV['API_WS_ROOT'] || 'ws://cats-collection.herokuapp.com/cable' %>";
export const HEADERS = {
'Content-Type': 'application/json',
Accept: 'application/json',
Expand Down
2 changes: 2 additions & 0 deletions config/environments/development.rb
Expand Up @@ -27,6 +27,8 @@
config.cache_store = :null_store
end

ENV['API_WS_ROOT'] = 'ws://localhost:3000/cable'

# Store uploaded files on the local file system (see config/storage.yml for options)
config.active_storage.service = :local

Expand Down

0 comments on commit 5209e26

Please sign in to comment.