Skip to content

Commit 3ba9aae

Browse files
authored
Merge pull request #83 from formio/FIO-9719-open-source-to-enterprise
FIO-9719: added example of deploying to open source to enterprise
2 parents 3b48482 + b35a310 commit 3ba9aae

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Readme.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ formio migrate https://myproject.form.io project https://forms.mydomain.com/mypr
123123
formio deploy [src] [dst]
124124
```
125125

126-
You can deploy a project on a paid plan on form.io to a hosted server with this command. Specify the source and destination servers and the project will be created or updated on the destination server.
126+
You can deploy a project on a paid plan on form.io to a hosted server with this command or deploy a project from an open source server to an enterprise project. Specify the source and destination servers and the project will be created or updated on the destination server.
127127

128128
Examples:
129129

@@ -136,9 +136,16 @@ formio migrate https://myproject.form.io project https://forms.mydomain.com/mypr
136136
137137
// Projects can also be referred to with their project id which will need to be looked up.
138138
formio deploy https://form.io/project/{projectId} http://localhost:3000/project/{projectId}
139+
140+
// Forms and Resources from an open source server can be deployed to an enterprise project by using the following command
141+
// This will copy all your forms and resources from the open source formio server to the enterprise project
142+
formio deploy <openSourceServerDomain> <enterpriseServerDomain>/<projectAlias> --src-key <openSourceServerX-Token> --dst-key <enterpriseServerX-Token>
143+
formio deploy http://localhost:3001 http://localhost:3000/pfcelycsrkqjccq --src-key 123 --dst-key 456
139144
```
140145

141-
Each server will require authentication so you will be asked twice, once for the source and once for the destination. These can also be specified with --src-username, --src-password, --dst-username, --dst-password.
146+
Each server will require authentication so you will need to add an API Key to each of the projects.
147+
Documentation on how to do that can be found here: https://help.form.io/userguide/projects/project-settings#api-settings
148+
For adding an API Key to the open source server you will need to set the environment variable API_KEYS. You can view our formio README if you need help on how to do this https://github.com/formio/formio/blob/master/README.md
142149

143150

144151
### Copy

0 commit comments

Comments
 (0)