1 | # APEX Nitro Publish
|
2 | When you are done developing, you might want to publish your new code directly to your APEX application.
|
3 |
|
4 | ```
|
5 | apex-nitro publish <project>
|
6 | ```
|
7 |
|
8 | ![](img/command-publish.png)
|
9 |
|
10 | The files will be uploaded and stored according to your configuration. Run `apex-nitro config <project>` and pick your file destination here:
|
11 |
|
12 | ![](img/config-publish-destination.png)
|
13 |
|
14 | ### Troubleshooting
|
15 |
|
16 | 1. **Command not found**
|
17 |
|
18 | ![](img/publish-fails-1.png)
|
19 |
|
20 | `apex-nitro publish <project>` will fail if the `SQLcl path` in `apex-nitro config <project>` is invalid.
|
21 |
|
22 | If you have added SQLcl to your environment variable, the `SQLcl path` should be `sql`.
|
23 |
|
24 | If not, you can use an absolute path to the SQLcl directory in your system, such as `/Users/vmorneau/sqlcl/bin/sql`.
|
25 |
|
26 | 2. **Connection String fails**
|
27 |
|
28 | ![](img/publish-fails-2.png)
|
29 |
|
30 | `apex-nitro publish <project>` can fail if the publish parameters in `apex-nitro config <project>` are invalid.
|
31 |
|
32 | APEX Nitro **does not** validate the connection string. The publish feature will only work if these parameters are valid.
|
33 |
|
34 | Double check your username, password, hostname, port, sid or service name.
|