Comments (4)
The Plezi framework uses the iodine HTTP/WebSocket server for WebSocket and Pub/Sub support.
Setting the port number depends on the way you start your application.
If you're starting your application using the rackup
command, use the -p
option to set the port. i.e.:
$ bundle exec rackup -p 8000
If you're starting the plezi framework using the iodine
command line, use the -p
option to set the port (use -?
for a list of options). i.e.:
$ bundle exec iodine -p 8000 -www ./public
If you're using a procfile
, you might need to update the port in the procfile
. i.e.:
web: bundle exec iodine -p $PORT -www ./public
Might become:
web: bundle exec iodine -p 8080 -www ./public
However, if you're using the default procfile
, it would be better to set the ENV variable PORT to the number you want (i.e. PORT=8080
).
from plezi.
hmmm, ok.
so no way to set it programmatically?
like
Iodine::Rack.public = File.expand_path('../../public',dir)
Iodine::Rack.log = true
Iodine::Rack.port = 6666
i tried but it doesn't work ;)
from plezi.
Setting the port and logging manually using the Iodine::Rack
properties works perfectly on my machine.
Are you sure you're setting these options before the server starts running?
Without knowing how you're starting up your server, I can't really know how to fix this.
For example, if you're using rackup
, than it might reset the port
property after your code was executed.
from plezi.
ok, it is that.
from plezi.
Related Issues (20)
- ERROR -- : uninitialized constant OpenSSL::SSL::SSLErrorWaitReadable (NameError) HOT 10
- ERROR -- : incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError) HOT 11
- Documentation help needed. HOT 2
- WebSocket connection to 'ws://localhost:3000/ws' failed: Error during WebSocket handshake: Unexpected response code: 200 HOT 21
- JSON event length is limited HOT 10
- download error with bundled client.js HOT 1
- rabbitmq HOT 1
- Finding a websocket session and send message HOT 8
- SyntaxError in generated config.ru
- Rack < 2.0 : cannot load such file -- rack/query_parser.rb HOT 1
- message_size_limit uninitialized constant Iodine::Http HOT 10
- create function is not synchronized HOT 19
- server shutdown when one or more client has a poor connection HOT 7
- Upgrade to bundler 2.0 HOT 3
- Help needed! HOT 1
- Failing at higher concurrency HOT 2
- Gap in documentation for serving static assets HOT 3
- Architectural clarification HOT 2
- There is no way to unsubscribe from Plezi::Controller.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plezi.