Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best location for server.js file? #30

Closed
kyleshevlin opened this issue Sep 27, 2016 · 4 comments
Closed

Best location for server.js file? #30

kyleshevlin opened this issue Sep 27, 2016 · 4 comments

Comments

@kyleshevlin
Copy link

I am developing an Ember application with Fastboot and utilizing this gem. After installing the addon and creating a server.js file at the root of my project, the application was able to build and run on the Fastboot server properly, but creates an error when trying to run the normal ember server command.

Here is the error output:

ember-cli expected ./server/index.js to be the entry for your mock or proxy server

It seems that creating a server.js file in the root of your application is frowned upon based on the short conversation regarding this issue on the Ember CLI repo: ember-cli/ember-cli#2903

Thus, I would like to know what is the recommended practice for placement of the server.js file you ask us to add. I would like to still be able to use Ember CLI's ember server command while in development because it comes with livereloading baked in. Running Fastboot in development is slower than I'd like to work.

@t4t5
Copy link

t4t5 commented Oct 9, 2016

Personally, I decided to just call the file frontend-server.js instead to make it work.

@kyleshevlin
Copy link
Author

Yes, I ended up placing it at fastboot_server/server.js. Perhaps documentation should be adjusted since server.js is a conflict with ember-cli's default ember server command.

oskarrough added a commit to oskarrough/ember-fastboot-now-deployment-example that referenced this issue Feb 18, 2017
Can't use `server.js`. So I chose `fastboot-server.js`.
See ember-fastboot/fastboot-app-server#30
oskarrough added a commit to oskarrough/fastboot-app-server that referenced this issue Feb 19, 2017
@kyleshevlin
Copy link
Author

I'm closing this because of lack of activity and I'm just tired of looking at it.

@oskarrough
Copy link
Contributor

oskarrough commented Jul 17, 2018

@kyleshevlin I don't mind but there is an open PR to fix it here in case #49.

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

No branches or pull requests

3 participants