Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
85 lines (51 loc) · 2.67 KB

File metadata and controls

85 lines (51 loc) · 2.67 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
breadcrumb: Pivotal Platform Dev Documentation
title: Frequently Asked Questions
owner: Pivotal Platform Dev
---
This topic provides guidance for common questions about running and configuring <%= vars.platform_name %> Dev.
## <a id="ssl_cert"></a> Why do I receive a "Invalid SSL Cert" error?
When targeting your API with `cf api api.dev.cfdev.sh`, you may receive the following error:
<pre class='terminal'>
Setting api endpoint to api.dev.cfdev.sh...
FAILED
Invalid SSL Cert for api.dev.cfdev.sh
</pre>
<%= vars.platform_name %> Dev comes with a self-signed SSL certificate for its API. The self-signed SSL certificate causes an `Invalid SSL Cert` error when using the cf CLI.
To avoid the error:
1. Start your <%= vars.platform_name %> Dev instance by running:
```
cf dev start
```
1. Run:
```
cf api api.dev.cfdev.sh --skip-ssl-validation
```
## <a id="host"></a> How can I connect apps running in <%= vars.platform_name %> Dev to services running on my workstation?
<%= vars.platform_name %> Dev provides a special hostname for addressing the host from inside of app containers. If the <%= vars.platform_name %> Dev system domain is `dev.cfdev.sh`, then the host is routable at `host.cfdev.sh`. Services running on the host must be listening on all network interfaces for apps to access them, not just `localhost`.
<p class="note"><strong>Note:</strong> Using <code>localhost</code> inside of app containers does not refer to your workstation.</p>
## <a id="memory"></a> How can I customize the memory and CPU count used by <%= vars.platform_name %> Dev?
By default, <%= vars.platform_name %> Dev allocates 8&nbsp;GB of memory to run.
To change the allocated memory:
1. Navigate to your workspace.
1. Run:
```
cf dev start -m NEW-ALLOCATED-MEMORY
```
Where `NEW-ALLOCATED-MEMORY` is the amount of memory you want to allocate in MB.
By default, <%= vars.platform_name %> Dev tries to use four cores. To change this setting:
1. Navigate to your workspace.
1. Run:
```
cf dev start -c DESIRED-NUMBER-OF-CORES
```
Where `DESIRED-NUMBER-OF-CORES` is the number of processor cores <%= vars.platform_name %> Dev should use.
## <a id="security_groups"></a> How are App Security Groups (ASGs) configured in <%= vars.platform_name %> Dev?
Unlike <%= vars.platform_name %>, <%= vars.platform_name %> Dev allows apps to access all private address ranges without the need for additional ASGs. This is because <%= vars.platform_name %> Dev is considered a trusted, local environment.
To remove the `all_pcfdev` security group:
1. Navigate to your app directory.
1. Run:
```
cf unbind-running-security-group all_pcfdev
```
Changes do not apply to existing running apps until you restart them.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.