diff --git a/aio/content/guide/deployment.md b/aio/content/guide/deployment.md index ad33bbda10..f3e1432723 100644 --- a/aio/content/guide/deployment.md +++ b/aio/content/guide/deployment.md @@ -97,7 +97,7 @@ For the simplest deployment, create a production build and copy the output direc -2. Copy _everything_ within the output folder (`dist/` by default) to a folder on the server. +2. Copy _everything_ within the output folder (`dist/project-name/` by default) to a folder on the server. 3. Configure the server to redirect requests for missing files to `index.html`. Learn more about server-side redirects [below](#fallback). @@ -211,11 +211,11 @@ modified to serve `index.html`: # . # -- server.rb # -- public - # |-- dist + # |-- project-name # |-- index.html get '/' do - folderDir = settings.public_folder + '/dist' # ng build output folder + folderDir = settings.public_folder + '/project-name' # ng build output folder send_file File.join(folderDir, 'index.html') end ``` @@ -383,11 +383,11 @@ Build your app for production _including the source maps_ -List the generated bundles in the `dist/` folder. +List the generated bundles in the `dist/project-name/` folder. - ls dist/*.js + ls dist/project-name/*.js @@ -396,7 +396,7 @@ The following example displays the graph for the _main_ bundle. - node_modules/.bin/source-map-explorer dist/main* + node_modules/.bin/source-map-explorer dist/project-name/main*