Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Start development servers other than Rails (i.e. EmberJS) #134

Open
movstox opened this issue Jan 31, 2016 · 2 comments
Open

Start development servers other than Rails (i.e. EmberJS) #134

movstox opened this issue Jan 31, 2016 · 2 comments
Labels

Comments

@movstox
Copy link

movstox commented Jan 31, 2016

hi and thanks for great gem,

would you please tell if it's possible to spawn the server other then rails?
i.e. say i go to http://my-emberjs-app.dev and prax starts ember s instead of rails s.

if yes, would you share few tips on how i can do that?
many thanks.

@ysbaddaden
Copy link
Owner

This is not possible with this version of Prax. It iseant to start Ruby Rack applications, and nothing else.

Since Prax serves anything from the public directory itself, it's possible to run pure frontend base applications (like Ember or Angular) but won't have the ability to start a backend app that isn't a Ruby Rack application. I have no idea what the Ember backend server is.

That being said, the crystal release of Prax has an experimental (and untested) support for starting any shell script, passing a $PORT environment variable the server must bind to. Instead of linking a directory (rack) or creating a file with a port number (port forwarding), create a shell script.

@movstox
Copy link
Author

movstox commented Jan 31, 2016

I see, thanks I'll try it.
Basically, looking for a way to run ember s instead of rails s and access it via .dev subdomain if that clarifies.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants