How can I deploy my ember cli site to GoDaddy?

I am new to web deployment. Can someone tell / show me the steps I should take to deploy my ember cli app for GoDaddy? If, in any case, GoDaddy does not support the ember cli application, is there a way similar to java files that can be compiled or something similar in ember to be able to deploy it to any hosting site? If so, please enlighten me.

+4
source share
3 answers

The Ember-CLI application can be deployed to any hosting site, since the web server must serve the static content created during execution

ember build --environment=production

/dist.

, , /dist - .

, - index.html(. Apache server)

+7

$ember build --environment =
. index.html. .

+3

, gzip: https://medium.com/@bryan.hughes/how-to-enable-compression-on-godaddy-shared-linux-server-deflate-gzip-44f2ab58d0ad#.9yod714no https://gist.github.com/dehuszar/68a18367f7e9fa6fb127 ( https://www.google.com/search?q=ember+cli+where+to+put+.htaccess+file)

[your-app]/public/.htaccess

# place in [your-app]/public so it gets compiled into the dist folder
<IfModule mod_rewrite.c>
  Options +FollowSymLinks

  RewriteEngine On

  # If you get 404 error, uncomment and change the line below.
  #RewriteBase /

  RewriteRule ^index\.html$ - [L]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . index.html [L]
</IfModule>

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

<files *.html>
  SetOutputFilter DEFLATE
</files>
<files *.svg>
  SetOutputFilter DEFLATE
</files>

gziping index.html. . media.com .

I also use ember-cli-deploy with ember-cli-deploy-build and ember-cli-deploy-ftp, but not ember-cli-deploy-gzip at this time. I also had to remove ember-cli-sri due to a weird console error about some hash integrity of the SHA check on my js and css files. At first ember-cli-favicon worked on creating my initial icons, but then it stopped working and I had to remove it. These tools are fairly easy to set up, but I’ll let you navigate in the settings if the documents change.

0
source

All Articles