Comments (7)
I use RVM (and foreman, though that's less relevant) for my Ruby projects and I managed to get mine to start using the command:
hotel add 'foreman start' -e GEM_HOME
I may end up adding other environment variables, but GEM_HOME
and PATH
were enough for me for now.
from hotel.
Could you try this please?
hotel add 'rails server --port $PORT' -e GEM_PATH
As far as I remember, I think that rvm
also modifies GEM_PATH
.
-e
will add GEM_PATH
to the <server>.json
config file.
from hotel.
That didn't fix it for me, still getting an error, a different one, but another error.
Bundler::GitError: {INTERNAL COMPANY GEM} is not yet checked out. Run `bundle install` first
after doing
hotel add 'bundle exec rails server' -p 3000 -o app.log -e GEM_PATH
with a config of:
{
"cwd": "/Users/jwilcox/webapps/appname",
"cmd": "bundle exec rails server",
"out": "app.log",
"env": {
"PATH": "/Users/jwilcox/.rvm/gems/jruby-1.7.13/bin:/Users/jwilcox/.rvm/gems/jruby-1.7.13@global/bin:/Users/jwilcox/.rvm/rubies/jruby-1.7.13/bin:/Users/jwilcox/.rvm/bin:/Users/jwilcox/.jenv/shims:/Users/jwilcox/.jenv/bin:/Users/jwilcox/bin:/usr/local/Cellar/php55/5.5.33/sbin:/Users/jwilcox/lunasa/jsp/lib:~/.cabal/bin:/Users/jwilcox/Library/Haskell/bin:/Applications/Postgres.app/Contents/Versions/9.3/bin:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jwilcox/gocode/bin:/Applications/P4Merge.app/Contents/MacOS:/usr/local/bin/elixir/bin",
"GEM_PATH": "/Users/jwilcox/.rvm/gems/jruby-1.7.13:/Users/jwilcox/.rvm/gems/jruby-1.7.13@global",
"PORT": 3000
}
}%
from hotel.
Hi,
I'm not familiar with this error.
Does running bundle install
and restarting the project from hotel.dev/localhost:2000 makes a difference?
Can I reproduce if I install Rails, JRuby and create a new Rails project or do I need to install other things?
from hotel.
Running bundle install does not help, the app starts fine when manually running rails s
. Interestingly it is only happening with jRuby, MRI ruby seems to work fine. You might be able to reproduce if you install jruby with RVM (i think that might be part of the problem), and Rails, shouldn't need anything else
from hotel.
Thank you for the feedback. Hotel does nothing special except running cmd
with the provided environment env
. So I guess it must be related to some environment variable. I'll give it a try.
from hotel.
For anyone still stuck, the following worked for me: hotel add 'rails server --port $PORT -b 127.0.0.1'
from hotel.
Related Issues (20)
- How to uninstall HOT 1
- ERR_CONNECTION_REFUSED HOT 1
- Proxy servers without starting them? HOT 2
- Path segments after service name not proxying correctly
- Add exceptions for Top Level Domains (TLD) HOT 3
- [FEATURE] pass by environment name of current app HOT 1
- [PROBLEM] Few problems - proxy on chrome, invalid host header with create-react-app
- ERR_INVALID_ARG_TYPE on macOS 10.15 node v14.1.0 HOT 4
- Anyone know a solid alternative? Too many crashes these days... HOT 3
- Typ
- ERR_CONNECTION_REFUSED HOT 2
- Allow overwriting CORS headers for remote server proxies
- Big Sur - LaunchAgents - Load error 5: input/output error HOT 4
- [bug] Doesn't start when use node 14 HOT 4
- Socket hang up error with multiple subdomains Ubuntu 20.04 HOT 1
- ERR_CONNECTION_REFUSED / Connection refused on Windows 10 HOT 1
- Is there a way to change the configuration folder path?
- Run1
- Hotel server not created on M1 mac
- SSL cert.pem and key.pem are not installed
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 hotel.