Skip to content

Commit 47656fc

Browse files
authored
Update gcloud-deployment.md
1 parent 5c39862 commit 47656fc

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

Diff for: docs/content/deployment/gcloud-deployment.md

+16-7
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,34 @@ The following are the instructions to deploy the angular-fullstack app to Google
33

44
# Prequsites
55
## 1. Google Cloud SDK
6-
Download and install [Google Cloud SDK](https://cloud.google.com/sdk/)
6+
Download and install [Google Cloud SDK](https://cloud.google.com/sdk/)
77
## 2. Create GCP Project
88
```bash
9-
gcloud projects create PROJECT_ID
10-
```
9+
gcloud projects create [PROJECT_ID]
10+
```
11+
```[PROJECT_ID]``` ID for the project you want to create.
12+
1113
## 3. Enable Billing
14+
You need to enable billing for your project before you begin using App Engine
1215
```bash
1316
gcloud alpha billing projects link my-project \
1417
--billing-account 0X0X0X-0X0X0X-0X0X0X
1518
```
19+
[gcloud alpha billing projects link](https://cloud.google.com/sdk/gcloud/reference/alpha/billing/projects/link)
20+
1621
## 4. Create a MongoDB database
17-
Create a MongoDB instance and obtain the uri and credentials
22+
Create a MongoDB instance and obtain the uri and credentials. There are multiple options for creating a new MongoDB database.
23+
- Create a Google Compute Engine virtual machine with [MongoDB pre-installed](https://cloud.google.com/launcher/?q=mongodb).
24+
- Create a MongoDB instance with [MongoDB Atlas on GCP](https://www.mongodb.com/cloud/atlas/mongodb-google-cloud).
25+
- Use [mLab](https://mlab.com/google) to create a free MongoDB deployment on Google Cloud Platform.
26+
1827

1928
# Deployment Setup
2029
## 1. Set Node / NPM versions
2130
GCloud App Engine supports only the newest version of Node.js 8
2231
```javascript
2332
"engines": {
24-
"node": " =8.0",
33+
"node": ">=8.0",
2534
"npm": "^5.1.1"
2635
},
2736
```
@@ -32,7 +41,7 @@ The following are the instructions to deploy the angular-fullstack app to Google
3241

3342
2.1 create a 'app.yaml' file with the following contents
3443

35-
```javascript
44+
```yaml
3645

3746
env: standard
3847

@@ -52,7 +61,7 @@ The following are the instructions to deploy the angular-fullstack app to Google
5261
```
5362
## 2. Copy app.yaml to dist
5463
```bash
55-
copy app.yaml dist
64+
cp app.yaml dist
5665
```
5766
## 3. Change to build directory
5867
```bash

0 commit comments

Comments
 (0)