Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I deploy my ember cli website to GoDaddy?

I'm new to web deployment. Can anyone tell / show me the steps I have to make to deploy my ember cli app to GoDaddy? If in anyway GoDaddy does not support ember cli app, is there a way like some sort of like the java files that can be compiled or something like that in ember to be able to deploy it in any hosting site? If so, please enlighten me.

like image 225
Axel Avatar asked Dec 24 '22 19:12

Axel


1 Answers

Ember-CLI app can be deployed to any hosting site as the web server only has to serve static content, generated by executing

ember build --environment=production

This command packages all required files for the application into /dist folder.

From there, all you need to do is to copy the contents of the /dist folder to a web server and configure it to serve the contents of this folder.

For browser history to work properly, you should also setup web server to serve all routes with index.html file (see example for Apache server)

like image 57
jesenko Avatar answered Jan 03 '23 12:01

jesenko