Code Monkey home page Code Monkey logo

hotel's People

Contributors

billymoon avatar cobalamin avatar danielpza avatar djyde avatar duncanbeevers avatar exah avatar floydwch avatar greenkeeper[bot] avatar houfio avatar hyperh avatar ishanray avatar j-f1 avatar janstevens avatar layerssss avatar leocolomb avatar leoj3n avatar m1guelpf avatar nghuuphuoc avatar olibia avatar rhynodesigns avatar rstacruz avatar spentacular avatar srph avatar the0neyouseek avatar therealklanni avatar thomas-mcdonald avatar typicode avatar umhan35 avatar wtfaremyinitials avatar yeskunall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hotel's Issues

Offline *.dev support

On OS X it doesn't seem possible to apply an automatic proxy conf url when offline because you can only apply a proxy to an interface (e.g. WiFi). Any thoughts on this?

socket hang up when using node-inspector

Socket hang up when using node-inspector to pause the execution, to be more exact, the socket hang up when the execution is continued.

node_modules/hotel/node_modules/http-proxy/lib/http-proxy/index.js:119
    throw err;
    ^

Error: socket hang up
    at createHangUpError (_http_client.js:239:15)
    at Socket.socketCloseListener (_http_client.js:271:23)
    at emitOne (events.js:95:20)
    at Socket.emit (events.js:182:7)
    at TCP._onclose (net.js:477:12)

babel dependency

the log says it all

$ npm install -g hotel

> [email protected] prepublish /home/git_user/src/hotel
> npm test

/
> [email protected] test /home/git_user/src/hotel
> npm run build && npm run standard && mocha

-
> [email protected] build /home/git_user/src/hotel
> babel src --out-dir lib --copy-files

module.js:338
    throw err;
          ^
Error: Cannot find module 'babel-core/lib/babel/transformation/modules'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/git_user/src/hotel/node_modules/.bin/babel:3:24)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)

npm ERR! Linux 3.13.0-55-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "build"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `babel src --out-dir lib --copy-files`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] build script 'babel src --out-dir lib --copy-files'.
npm ERR! This is most likely a problem with the hotel package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     babel src --out-dir lib --copy-files
npm ERR! You can get their info via:
npm ERR!     npm owner ls hotel
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/git_user/src/hotel/npm-debug.log
npm ERR! Test failed.  See above for more details.

npm ERR! addLocalDirectory Could not pack /home/git_user/src/hotel to /home/git_user/.npm/hotel/0.2.10/package.tgz
npm ERR! addLocal Could not install /home/git_user/src/hotel
npm ERR! Linux 3.13.0-55-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "hotel"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] prepublish: `npm test`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] prepublish script 'npm test'.
npm ERR! This is most likely a problem with the hotel package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm test
npm ERR! You can get their info via:
npm ERR!     npm owner ls hotel
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/git_user/src/npm-debug.log

relative url problem

Hi @typicode,

When configuring the web server to reverse proxy "/hotel" towards port ":2000"
there is a problem accessing socket.io.js, index.js and the css.
It's everything trying to access '/' instead of './'

2015-07-16 14:06:41.649 hotel:6 GET 404 http://website.com/style.css 
2015-07-16 14:06:41.649 hotel:50 GET 404 http://website.com/socket.io/socket.io.js 
2015-07-16 14:06:41.650 hotel:51 GET 404 http://website.com/index.js 

It should reach http://website.com/hotel/index.js

Or maybe something should be configured differently?

Please let me know ๐Ÿ˜„

By the way, the automatic warning for update is a really cool idea. Thanks!!!

Can't launch `rails server`

Here's my server json file:

{
  "cwd": "/Users/daniel/Dev/nylon/nylonmag",
  "cmd": "rails server",
  "env": {
    "PATH": "/Users/daniel/.rvm/gems/ruby-2.0.0-p481/bin:/Users/daniel/.rvm/gems/ruby-2.0.0-p481@global/bin:/Users/daniel/.rvm/rubies/ruby-2.0.0-p481/bin:/Users/daniel/.composer/vendor/bin:/usr/local/opt/php56/bin:/Users/daniel/.go/bin:/Applications/VMware:Fusion.app/Contents/Library:/usr/local/MacGPG2/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/Users/daniel/.rvm/bin",
    "PORT": 3000
  }
}

And here's the error I get:

Can't connect to server on port 3000. Server crashed or timeout of 5000ms exceeded. Retry or check logs.
sh -c rails server

/Users/daniel/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'railties' (>= 0) among 15 total gem(s) (Gem::LoadError)
    from /Users/daniel/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:309:in `to_spec'
    from /Users/daniel/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
    from /Users/daniel/.rvm/gems/ruby-2.0.0-p481/bin/rails:22:in `
'
    from /Users/daniel/.rvm/gems/ruby-2.0.0-p481/bin/ruby_executable_hooks:15:in `eval'
    from /Users/daniel/.rvm/gems/ruby-2.0.0-p481/bin/ruby_executable_hooks:15:in `
'```

I have way more than 15 gems installed, including the one it's looking for:

```bash
*** LOCAL GEMS ***

actionmailer (3.2.12)
actionpack (4.2.5, 3.2.12)
actionview (4.2.5)
active_admin_editor (1.1.0)
activeadmin (0.6.0)
activemodel (3.2.12)
activerecord (3.2.12)
activeresource (3.2.12)
activesupport (4.2.5, 3.2.12)
arbre (1.0.1)
arel (3.0.2)
awesome_print (1.6.1)
aws-s3 (0.6.3)
aws-sdk (1.19.0)
aws_cf_signer (0.1.3)
bcrypt-ruby (3.1.2)
better_errors (1.0.1)
bigdecimal (1.2.0)
binding_of_caller (0.7.2)
bourbon (3.1.8)
browser (0.2.1)
builder (3.2.2, 3.0.4)
bundler (1.6.2)
bundler-unload (1.0.2)
cachebar (1.1.1)
climate_control (0.0.3)
cloudinary (1.1.0)
cocaine (0.5.0)
coderay (1.1.0)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.3)
crass (1.0.2)
daemons (1.1.9)
debug_inspector (0.0.2)
devise (2.2.4)
domain_name (0.5.24)
ejs (1.1.1)
erubis (2.7.0)
eventmachine (1.0.3)
execjs (2.0.2)
executable-hooks (1.3.2)
faraday (0.8.8)
faraday_middleware (0.9.0)
fastercsv (1.5.5)
formtastic (2.2.1)
gem-wrappers (1.2.7, 1.2.4)
haml (4.0.3)
haml-rails (0.4)
has_scope (0.6.0.rc)
hashie (2.0.5)
hike (1.2.3)
http-cookie (1.0.2)
httparty (0.8.3)
i18n (0.7.0)
inherited_resources (1.4.1)
instagram (0.10.0)
io-console (0.4.2)
journey (1.0.4)
jquery-rails (2.0.3)
json (1.8.0, 1.7.7)
just-datetime-picker (0.0.6)
kaminari (0.14.1)
loofah (2.1.0.rc2)
mail (2.4.4)
meta_search (1.1.3)
mime-types (1.25)
mini_portile2 (2.1.0)
minitest (5.8.3, 4.3.2)
multi_json (1.8.2)
multi_xml (0.5.5)
multipart-post (1.2.0)
mysql2 (0.4.2, 0.3.13)
netrc (0.10.3)
newrelic_rpm (3.11.2.286)
nokogiri (1.6.8.rc2, 1.5.11)
orm_adapter (0.4.0)
paperclip (3.4.2)
paperclip-ffmpeg (1.0.0)
paperclip-meta (0.4.3)
polyamorous (0.5.0)
polyglot (0.3.3)
psych (2.0.0)
rack (1.6.4, 1.4.5)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.12)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.2)
railties (3.2.12)
rainbow (2.0.0)
rake (10.4.2, 0.9.6)
rdoc (4.0.0, 3.12.2)
redis (3.2.1)
redis-namespace (1.5.1)
responders (1.0.0)
rest-client (1.8.0)
retryable-rb (1.1.0)
rubygems-bundler (1.4.4)
rubypress (1.1.0)
rvm (1.11.3.9)
sass (3.4.21, 3.2.12)
sass-rails (3.2.6)
scss_lint (0.43.2)
sitemap_generator (5.0.2)
sprockets (2.2.2)
ssl_requirement (0.1.0)
test-unit (2.0.0.0)
thin (1.5.1)
thor (0.18.1)
thread_safe (0.3.5)
tilt (1.4.1)
tinymce-rails (4.0.26)
treetop (1.4.15)
tzinfo (1.2.2, 0.3.38)
uglifier (2.2.1)
unf (0.1.4)
unf_ext (0.0.7.1)
uuidtools (2.1.4)
warden (1.2.3)

Projects?

Hi there!

Loving this tool. Seriously considering adding it to my toolset and possibly contributing. Do you have any plans to implement projects? Let's say I have 3 servers that are all related. I might want to have a page for them. Then have another page for another 4 servers that are related?

Thanks!

404 BrowserSync

Would hotel proxy to other ports for BrowserSync, Livereload, etc
Now it is return 404

hotel stop && hotel start - can't connect to host any more [OS X]

Hi all,

I've been using Katon for a little while now, but decided to try out Hotel as it is suggested on the main Katon GH page.

My issue is that after restarting Hotel, I can no longer connect to localhost on port 2000 (getting ERR_CONNECTION_REFUSED). Its like Hotel doesn't spin back up properly after stopping. This goes for trying to connect both to localhost:2000 and to [project name].test (had to configure the "test" tld as the latest versions of Chrome have a problem with .dev domains).

Any help gratefully received.

D

Add warning on IE about server logs

It's not possible to view server logs on IE because Server-sent events aren't supported (but no plan to switch to WebSockets). It would be nice to add a message about it.

Error on installation

Hello,
when trying to install Hotel using the command "sudo npm install -g hotel", I get this error :

/usr/local/bin/hotel -> /usr/local/lib/node_modules/hotel/bin/index.js
[email protected] install /usr/local/lib/node_modules/hotel
node bin/install
/usr/local/lib/node_modules/hotel/node_modules/mkdirp/index.js:90
throw err0;
^
Error: EACCES, permission denied '/Users/my_user_name/.hotel'
[...]

I tried to uninstall multiple times but always get the same error :/

Subdomains

The question is quite interesting suppose, I have an app that handles subdomains. And I need to do to run it, how it works?

Question about proxy.pac for Chrome

In docs of Proxy, Browser configuration for Chrome, have this instructions

google-chrome --proxy-pac-url=http://localhost:2000/proxy.pac

Well, I think its a command, right?
I've run this in my terminal, but this command don't exists here
zsh: command not found: google-chrome

Don't have any instructions about this case, what I can do?

more options for start?

The app server started from accessing the URL provided by hotel. However, the start could be slow, and wait the time during start is less productive.

It would be nice to have more start options such as hotel start myapp and hotel start --all to start the app server actively.

After restart .dev domains won't load

First off, thanks for Hotel; I've been looking for something just like this for quite some time.


My .dev domains never seem to connect now (they were working).

// Actions:
$ hotel stop
$ hotel start
// now `http://localhost:2000/` works
// but `hotel.dev` never connects

I tried stopping, reinstalling (npm install -g hotel) and starting again with no luck.

Just checked and my Automatic Proxy Configuration is still selected.

My conf.json:

{
  "port": 2000,
  "host": "127.0.0.1",
  "timeout": 5000,
  "tld": "dev"
}

Any ideas?

Can't connect to server on port XXXXX

I'm having a problem when trying to access one of the projects through the .dev domain. The output that appears in the browser is as follows:

Can't connect to server on port 45355. Server crashed or timeout of 5000ms exceeded. Retry or check logs.
sh -c npm start


> [email protected] start /home/julianorafael/Development/projects/pomodoro-app
> cross-env NODE_ENV=development node server.dev.js

Starting server...

Server started
Listening at localhost:3000

Custom subdomain fire custom launch script?

I saw that subdomain support was released ๐Ÿ”ฅ . Now I am wondering to what extent I can use them.

We spin up our project based on environment variables..

# spin up local development
$ gulp serve --env local

# build against our staging environment
$ gulp serve --env staging

# build against production environment
$ gulp serve --env production

Currently I have three separate domains set up to emulate this:
screen shot 2016-04-18 at 8 29 50 am

My hope is that I can do something more like this:

# local.client.dev
$ gulp serve --env local

# staging.client.dev
$ gulp serve --env staging

# production.client.dev
$ gulp serve --env production

Is this possible or are subdomains more about pointing to different servers etc?

CLI ps, up, down

Add CLI commands
hotel ps โ€” view runned apps
hotel down โ€” stop app (or kill)
hotel up โ€” up app
hotel open โ€” open project url in browser

Can't launch `rails server`

Here's my server json file:

{
  "cwd": "/Users/daniel/Dev/nylon/nylonmag",
  "cmd": "rails server",
  "env": {
    "PATH": "/Users/daniel/.rvm/gems/ruby-2.0.0-p481/bin:/Users/daniel/.rvm/gems/ruby-2.0.0-p481@global/bin:/Users/daniel/.rvm/rubies/ruby-2.0.0-p481/bin:/Users/daniel/.composer/vendor/bin:/usr/local/opt/php56/bin:/Users/daniel/.go/bin:/Applications/VMware:Fusion.app/Contents/Library:/usr/local/MacGPG2/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/Users/daniel/.rvm/bin",
    "PORT": 3000
  }
}

And here's the error I get:

Can't connect to server on port 3000. Server crashed or timeout of 5000ms exceeded. Retry or check logs.

sh -c rails server

/Users/daniel/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:298:in `to_specs': Could not find 'railties' (>= 0) among 15 total gem(s) (Gem::LoadError)
    from /Users/daniel/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb:309:in `to_spec'
    from /Users/daniel/.rvm/rubies/ruby-2.0.0-p481/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb:53:in `gem'
    from /Users/daniel/.rvm/gems/ruby-2.0.0-p481/bin/rails:22:in `
'
    from /Users/daniel/.rvm/gems/ruby-2.0.0-p481/bin/ruby_executable_hooks:15:in `eval'
    from /Users/daniel/.rvm/gems/ruby-2.0.0-p481/bin/ruby_executable_hooks:15:in `
'

I have way more than 15 gems installed, including the one it's looking for:

*** LOCAL GEMS ***

actionmailer (3.2.12)
actionpack (4.2.5, 3.2.12)
actionview (4.2.5)
active_admin_editor (1.1.0)
activeadmin (0.6.0)
activemodel (3.2.12)
activerecord (3.2.12)
activeresource (3.2.12)
activesupport (4.2.5, 3.2.12)
arbre (1.0.1)
arel (3.0.2)
awesome_print (1.6.1)
aws-s3 (0.6.3)
aws-sdk (1.19.0)
aws_cf_signer (0.1.3)
bcrypt-ruby (3.1.2)
better_errors (1.0.1)
bigdecimal (1.2.0)
binding_of_caller (0.7.2)
bourbon (3.1.8)
browser (0.2.1)
builder (3.2.2, 3.0.4)
bundler (1.6.2)
bundler-unload (1.0.2)
cachebar (1.1.1)
climate_control (0.0.3)
cloudinary (1.1.0)
cocaine (0.5.0)
coderay (1.1.0)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.6.3)
crass (1.0.2)
daemons (1.1.9)
debug_inspector (0.0.2)
devise (2.2.4)
domain_name (0.5.24)
ejs (1.1.1)
erubis (2.7.0)
eventmachine (1.0.3)
execjs (2.0.2)
executable-hooks (1.3.2)
faraday (0.8.8)
faraday_middleware (0.9.0)
fastercsv (1.5.5)
formtastic (2.2.1)
gem-wrappers (1.2.7, 1.2.4)
haml (4.0.3)
haml-rails (0.4)
has_scope (0.6.0.rc)
hashie (2.0.5)
hike (1.2.3)
http-cookie (1.0.2)
httparty (0.8.3)
i18n (0.7.0)
inherited_resources (1.4.1)
instagram (0.10.0)
io-console (0.4.2)
journey (1.0.4)
jquery-rails (2.0.3)
json (1.8.0, 1.7.7)
just-datetime-picker (0.0.6)
kaminari (0.14.1)
loofah (2.1.0.rc2)
mail (2.4.4)
meta_search (1.1.3)
mime-types (1.25)
mini_portile2 (2.1.0)
minitest (5.8.3, 4.3.2)
multi_json (1.8.2)
multi_xml (0.5.5)
multipart-post (1.2.0)
mysql2 (0.4.2, 0.3.13)
netrc (0.10.3)
newrelic_rpm (3.11.2.286)
nokogiri (1.6.8.rc2, 1.5.11)
orm_adapter (0.4.0)
paperclip (3.4.2)
paperclip-ffmpeg (1.0.0)
paperclip-meta (0.4.3)
polyamorous (0.5.0)
polyglot (0.3.3)
psych (2.0.0)
rack (1.6.4, 1.4.5)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.12)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.2)
railties (3.2.12)
rainbow (2.0.0)
rake (10.4.2, 0.9.6)
rdoc (4.0.0, 3.12.2)
redis (3.2.1)
redis-namespace (1.5.1)
responders (1.0.0)
rest-client (1.8.0)
retryable-rb (1.1.0)
rubygems-bundler (1.4.4)
rubypress (1.1.0)
rvm (1.11.3.9)
sass (3.4.21, 3.2.12)
sass-rails (3.2.6)
scss_lint (0.43.2)
sitemap_generator (5.0.2)
sprockets (2.2.2)
ssl_requirement (0.1.0)
test-unit (2.0.0.0)
thin (1.5.1)
thor (0.18.1)
thread_safe (0.3.5)
tilt (1.4.1)
tinymce-rails (4.0.26)
treetop (1.4.15)
tzinfo (1.2.2, 0.3.38)
uglifier (2.2.1)
unf (0.1.4)
unf_ext (0.0.7.1)
uuidtools (2.1.4)
warden (1.2.3)

View Server Output in the Browser

Feature request. Option to view the server output in the browser, along with the start/stop buttons. This would allow the developer to monitor several server logs in one consolidated view.

Something like an integration with logio

Receiving support?

Hi there! This isn't a issue but I didn't know where to ask!
Are you accepting donations or supports? Because may you get some extra support for hotel, but there is no donate button o something like that.
I don't trying to spam you, but I want to invite you to beerpay.io, a simple platform to monetize open source projects, like hotel.
I know that the open source is free, but it's okay if someone want to contribute in other way.

Thanks for this work man!

Hotel + SSL?

I'm trying to use hotel with a few apps and one in particular requires me to use SSL locally. Does hotel support this at all, or will I need to stick with something like Apache or Nginx?

localhost:2000 is blank and "hotel stop" hangs

If I check out dd570bd and run npm run build && npm link, then run hotel start, the servers in my configuration are listed at http://localhost:2000/.

However, if I reset everything and check out master and run npm link, then run hotel start, nothing is displayed on http://localhost:2000/. I do see information spit out at the API endpoints http://localhost:2000/_/servers and http://localhost:2000/_/events.

When testing either checked out commit, running hotel stop never completes and the daemon never shuts itself down. I have to manually run: launchctl unload /Users/leoj/Library/LaunchAgents/hotel.plist

I tried debugging these issues on my own without much success so for now I will use dd570bd and manually unload the plist. I hope you will iron out these bugs soon! Thanks.

run multiple servers for one app

I have a rails app that uses react on the frontend, I normally have to spin up one terminal tab with rails s and then in another tab run gulp to spin up my front end build task which also sets up a server for hot reloading and i use that url, is tis possible with hotel?

Bundle Font Awesome icons

It would be great if Font Awesome were bundled with hotel.
Currently, if you try to access localhost:2000 without network access, icons won't display.

Adding Font Awesome as a devDependency and updating webpack should do the trick.

PR welcome :)

Point two subdomains to same application

I want to point app.something.dev and api.something.dev to be pointing to same application. If i make two config files with different names i get A server is already running. Check /home/sztosz/app_dir/tmp/pids/server.pid. Is there a way to serve app under two diffrent subdomains?

Toggle not working in Safari 9.1

I am able to access hotel.dev. But on clicking the toggle, it doesn't work on Safari 9.1.

Here is the stack trace.
screen shot 2016-04-03 at 1 09 57 am

It looks like the fetch library is missing (from the stack trace above). It works in Chrome though.

Any known bugs here?

Reconsider the use of scripts.install

Using scripts.install is not considered a good practice and may lead to strange side effects. Consider instead having users run hotel autostart themselves.

npm help scripts has this to say about install:

Don't use install. Use a .gyp file for compilation, and prepublish for anything else. You should almost never have to explicitly set a preinstall or install script. If you are doing this, please consider if there is another option. The only valid use of install or preinstall scripts is for compilation which must be done on the target architecture.

You will notice that when working on hotel in development, this makes for some strange behavior too:

โ†’  npm install

> [email protected] install ...
> (node-gyp rebuild 2> builderror.log) || (exit 0)

> [email protected] install ...
> (node-gyp rebuild 2> builderror.log) || (exit 0)

> [email protected] install ...

> [email protected] install ...
> node bin/install

module.js:334
    throw err;
          ^
Error: Cannot find module '../lib/actions/autostart'

This is because running npm install (for development) will run scripts.install then scripts.prepublish.

Consider instead having something like:

scripts: {
  install: "echo; echo Hotel is now installed.; echo Run 'hotel autostart' and visit 'http://localhost:2000' to get started.; echo"
}

Maintain a changelog

It'd be nice to know why I should upgrade from 0.2.2 to 0.2.10 :)

Btw, nice project! Using it to manage my simple jekyll sites I work on from time to time.

Best way to sync config & servers across machines?

In the past I usually put all configs into my dot-files repo and then symlink them into my user directory. This way all of my machine's configs are tracked together.

This doesn't seem to work since Hotel is checking for a directory (stat.isDirectory()). Since Hotel doesn't believe a directory exists, it tries to create the directory (which of course fails due to a conflict with the symlink).

Have others come up with a better solution for syncing Hotel config/servers across machines? Or would we need to refactor how hotel checks for existing configs?


To reproduce

  • create new directory
  • move all files from ~/.hotel into the new directory
  • create a symlink in your user directory ~ called .hotel that points to the newly created directory
  • $ hotel start
โžœ  angular-json-calendar git:(master) hotel start
/usr/local/lib/node_modules/hotel/node_modules/mkdirp/index.js:92
                if (!stat.isDirectory()) throw err0;
                                         ^

Error: EEXIST: file already exists, mkdir '/Users/bc/.hotel'
    at Error (native)
    at Object.fs.mkdirSync (fs.js:794:18)
    at Function.sync (/usr/local/lib/node_modules/hotel/node_modules/mkdirp/index.js:71:13)
    at Object.<anonymous> (/usr/local/lib/node_modules/hotel/lib/conf.js:15:8)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)

Object #<Object> has no method 'execSync' in user-startup module

This error occurred when running hotel for the first time after installing it globally.

hotel start

/usr/local/lib/node_modules/hotel/node_modules/user-startup/lib/startup/darwin.js:34
  cp.execSync('launchctl load ' + file);
     ^
TypeError: Object #<Object> has no method 'execSync'
    at Object.create (/usr/local/lib/node_modules/hotel/node_modules/user-startup/lib/startup/darwin.js:34:6)
    at Object.start (/usr/local/lib/node_modules/hotel/lib/cli/daemon.js:22:11)
    at module.exports (/usr/local/lib/node_modules/hotel/lib/cli/index.js:32:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/hotel/bin/index.js:2:22)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)

The issue seems to be with user-startup module, and it looks like an old version is being used in hotel.

npm version: 1.4.21
node version: 0.10.30

javascript error in browser

Hi,

I have installed Hotel and started it:

$ npm install -g hotel
$ hotel start

then I got in my browser on http://localhost:2000/

bundle.js:16 
Uncaught Error: Cannot find module "!!./../../node_modules/css-loader/index.js!./../../node_modules/sass-loader/index.js!./style.scss"

os: ubuntu 15.04
npm: 3.7.3
node: 5.7.0

thoughts?

hotel (0.4.16) dies randomly (OS X)

The hotel daemon stops running at random times. Sometimes right after "hotel start" sometimes later (after hours).

This is what ~/.hotel/daemon.log says:

Exiting
Stop daemon
Remove pid file
/usr/local/lib/node_modules/hotel/lib/daemon/app.js:26
  var _req$headers$host$spl = req.headers.host.split(':');
                                              ^

TypeError: Cannot read property 'split' of undefined
    at parseReq (/usr/local/lib/node_modules/hotel/lib/daemon/app.js:26:47)
    at Server.<anonymous> (/usr/local/lib/node_modules/hotel/lib/daemon/app.js:68:21)
    at emitThree (events.js:110:13)
    at Server.emit (events.js:188:7)
    at onParserExecuteCommon (_http_server.js:400:14)
    at HTTPParser.onParserExecute (_http_server.js:368:5)

I of course did not stop hotel. Running hotel start after that results in:

/Users/me/Library/LaunchAgents/hotel.plist: service already loaded

I have to stop and start.

Hotel doesn't detect IPv6 listeners

The default Puma + Rails 5 on El Capitan configuration means that Puma binds to locahost:PORT which (in Puma land) resolves to to [::1]:PORT (More information about this 'behaviour' in Puma / TCPServer). However hotel expects it to bind to 127.0.0.1:PORT, and so returns an error saying that the app didn't start (when it did).

A couple of workarounds:

  1. Pass -b 127.0.0.1 to rails server.
  2. Remove ::1 localhost mapping from /etc/hosts (not ideal).
  3. Add a puma config to force it to listen to 127.0.0.1 not localhost.

This might be a wont-fix, but I thought I'd report it anyway :)

Sometimes it seems impossible to turn a server off and keep it off.

I have a server running:

screen shot 2016-04-18 at 8 39 20 am

I click the toggle and it visually turns off but restarts again automatically in about 2 seconds. I have tried stopping/starting hotel. Wanted to see if anyone had some thoughts before I resorted to rebooting my machine.

(gif is sped up a bit)
hotelbug mp4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.