-
Notifications
You must be signed in to change notification settings - Fork 3
Uploading legacy gadgets
possibilities edited this page Dec 18, 2014
·
8 revisions
How to upload legacy gadget to sandbox and test it on versal.com
To get a session ID use the SDK's signin
feature (with your versal.com username/password):
versal signin --verbose
Copy and paste the session ID into another cURL request:
curl -X POST https://stack.versal.com/api2/users -H SID:[YOUR_SESSSION_ID_FROM_PREV_STEP] --data '{"username": "[YOUR_DESIRED_USERNAME]"}'
The username
key in the manifest should reflect the username you set up in No. 1. This is used during the compile
phase to namespace CSS selectors.
Perform any gadget specific build steps
versal version patch # generally you have to bump the version to upload
versal upload --apiUrl https://stagingstack.versal.com/api2