What is "ember generate server"?

ember generate server: Generates a server directory for mocks and proxies.

Is it only working on development? Does it make dirty the production environment? Is it safe to use it on development?

Yes, it’s only for development. No, it doesn’t affect production builds (it’s run inside of Ember CLI). And yes, it’s safe to use (although you could theoretically write mocks that are very unsafe, so be a bit careful)

1 Like

Thank you. Can you give example to unsafe mocks?

API calls that allow the caller to erase files on your hard drive? :wink: Don’t do things like that and you should be fine

:slight_smile: I see. Thank you again.