<commit_before>---
layout: post
title: Deploy to S3
date: 2017-02-07 00:00:00
description: To use our React.js app in production we are going to use Create React App’s build command to create a production build of our app. And to upload our React.js app to an S3 Bucket on AWS, we are going to use the AWS CLI s3 sync command. 
comments_id: 63
---

Now that our S3 Bucket is created we are ready to upload the assets of our app.

### Build Our App

Create React App comes with a convenient way to package and prepare our app for deployment. From our working directory simply run the following command.<commit_msg>Update deploy-to-s3.md<commit_after>---
layout: post
title: Deploy to S3
date: 2017-02-07 00:00:00
description: To use our React.js app in production we are going to use Create React App’s build command to create a production build of our app. And to upload our React.js app to an S3 Bucket on AWS, we are going to use the AWS CLI s3 sync command. 
context: all
comments_id: 63
---

Now that our S3 Bucket is created we are ready to upload the assets of our app.

### Build Our App

Create React App comes with a convenient way to package and prepare our app for deployment. From our working directory simply run the following command.
{'fraction_non_alphanumeric': 0.05128205128205128, 'fraction_numerical': 0.032852564102564104, 'mean_word_length': 3.8223938223938223, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1428391', 'n_tokens_mistral': 364, 'n_tokens_neox': 337, 'n_words': 214}