docs: Update output directory name in Deployment guide (#39247)
The default output directory is no longer `dist/` but `dist/project-name/` PR Close #39247
This commit is contained in:
		
							parent
							
								
									6e18d2dacc
								
							
						
					
					
						commit
						56ab6d56e9
					
				| @ -97,7 +97,7 @@ For the simplest deployment, create a production build and copy the output direc | |||||||
|   </code-example> |   </code-example> | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 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`. | 3. Configure the server to redirect requests for missing files to `index.html`. | ||||||
| Learn more about server-side redirects [below](#fallback). | Learn more about server-side redirects [below](#fallback). | ||||||
| @ -211,11 +211,11 @@ modified to serve `index.html`: | |||||||
|   # . |   # . | ||||||
|   # -- server.rb |   # -- server.rb | ||||||
|   # -- public |   # -- public | ||||||
|   #    |-- dist |   #    |-- project-name | ||||||
|   #        |-- index.html |   #        |-- index.html | ||||||
| 
 | 
 | ||||||
|   get '/' do |   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') |       send_file File.join(folderDir, 'index.html') | ||||||
|   end |   end | ||||||
|   ``` |   ``` | ||||||
| @ -383,11 +383,11 @@ Build your app for production _including the source maps_ | |||||||
| 
 | 
 | ||||||
| </code-example> | </code-example> | ||||||
| 
 | 
 | ||||||
| List the generated bundles in the `dist/` folder. | List the generated bundles in the `dist/project-name/` folder. | ||||||
| 
 | 
 | ||||||
| <code-example language="none" class="code-shell"> | <code-example language="none" class="code-shell"> | ||||||
| 
 | 
 | ||||||
|   ls dist/*.js |   ls dist/project-name/*.js | ||||||
| 
 | 
 | ||||||
| </code-example> | </code-example> | ||||||
| 
 | 
 | ||||||
| @ -396,7 +396,7 @@ The following example displays the graph for the _main_ bundle. | |||||||
| 
 | 
 | ||||||
| <code-example language="none" class="code-shell"> | <code-example language="none" class="code-shell"> | ||||||
| 
 | 
 | ||||||
|   node_modules/.bin/source-map-explorer dist/main* |   node_modules/.bin/source-map-explorer dist/project-name/main* | ||||||
| 
 | 
 | ||||||
| </code-example> | </code-example> | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user