What is "ember generate server"?


#1

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?


#2

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)


#3

Thank you. Can you give example to unsafe mocks?


#4

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


#5

:slight_smile: I see. Thank you again.