* getting ready to create a easy websocket starter mechanism that starts websocket whenever you run jam-web
This commit is contained in:
parent
4f8f4f392a
commit
2b951aec0d
|
|
@ -20,3 +20,4 @@ doc/
|
|||
.project
|
||||
.DS_Store
|
||||
.idea
|
||||
*.iml
|
||||
|
|
|
|||
|
|
@ -0,0 +1,8 @@
|
|||
<li>
|
||||
<%= gravatar_for user, size: 52 %>
|
||||
<%= link_to user.name, user %>
|
||||
<% if current_user.admin? && !current_user?(user) %>
|
||||
| <%= link_to "delete", user, method: :delete,
|
||||
data: { confirm: "You sure?" } %>
|
||||
<% end %>
|
||||
</li>
|
||||
|
|
@ -64,5 +64,8 @@ module SampleApp
|
|||
|
||||
# Version of your assets, change this if you want to expire all your assets
|
||||
config.assets.version = '1.0'
|
||||
|
||||
# Runs the websocket gateway within the web app
|
||||
config.run_websocket_gateway = true
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -0,0 +1,7 @@
|
|||
|
||||
# if we are instructed to start the websocket gateway, do so
|
||||
if Rails.application.config.run_websocket_gateway
|
||||
puts "starting websocket gateway..."
|
||||
|
||||
puts "not really..."
|
||||
end
|
||||
Loading…
Reference in New Issue