You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,6 +202,20 @@ You're now ready to start up STF itself:
202
202
stf local
203
203
```
204
204
205
+
Later, if you want to change the values of these built-in objects, for example to change the identity of the administrator user, you must follow the below instructions or you are likely to encounter data inconsistency issues:
206
+
1. stop the STF server (without stop the RethinkDB database)
207
+
2. It is recommended to make a backup of the database (in case of inconsistency problem during migration)
208
+
3. set environment variables to new desired values for built-in objects
209
+
4. if you change the administrator identity, make sure the user does not exist in the database yet, if it does you need to delete it first via the UI or RestFul API
210
+
5. run the `stf migrate` command
211
+
* If you get an STF error like `ERR/db:api..` (e.g. you tried to change the name of the current administrator or the new administrator already exists in the database), it means that no changes have been made to the database that remain consistent
212
+
* otherwise you get a STF message telling you the built-in objects have been updated successfully
213
+
6. Finally if all went well you are now ready to start STF itself:
214
+
215
+
```bash
216
+
stf local
217
+
```
218
+
205
219
After the [webpack](http://webpack.github.io/) build process has finished (which can take a small while) you should have your private STF running on [http://localhost:7100](http://localhost:7100). If you had devices connected before running the command, those devices should now be available for use. If not, you should see what went wrong from your console. Feel free to plug in or unplug any devices at any time.
206
220
207
221
Note that if you see your device ready to use but without a name or a proper image, we're probably missing the data for that model in [our device database](https://github.com/devicefarmer/stf-device-db). Everything should work fine either way.
0 commit comments