I want to copy the economy configuration from the development to the production environment, but, I am not able to figure out the exact steps.
Can someone help me with this?
Hey!
Can you take a look at the answer posted here and see if it helps?
With the ugs cli, its a few steps:
mkdir myEconomyConf
# get the configuration
ugs fetch myEconomyConf -s economy --reconcile
# move it to prod
ugs deploy myEconomyConf -e production
This is also doable straight from the editor, for more details in my previous answer
Cheers
Sorry man i am not getting that, is that fetching a file on my pc or on the beckend? if it is on my PC how can i create a economy file? if it is on backend which path i have to set?
To create an entry into the economy it is better to use the economy dashboard.
I created many entries for development and wanted to copy those to production but didn’t find an easy way for the same.
By using ugs cli I managed to copy those.
The steps are basically as follows :
-
Install the cli using this https://services.docs.unity.com/guides/ugs-cli/latest/general/get-started/install-the-cli/
-
If it is a success then you will have to set your project id and environment id. Follow this link for it https://services.docs.unity.com/guides/ugs-cli/latest/general/get-started/setup-a-common-configuration/
-
Then you will have to login to the service account using https://services.docs.unity.com/guides/ugs-cli/latest/general/base-commands/login/#logging-in-with-environment-variables
-
For logging in it will ask for your service ID and secret-key. You must have those created, so that you can enter them in step 3.
-
To create a service account follow these steps https://services.docs.unity.com/docs/service-account-auth/index.html only till Create a service account.
-
Now you can enter ID and secret-key as asked in step 3.
-
Now you will have to go to unity dashboard and under Administration - Service accounts - Project roles add the roles from this link https://services.docs.unity.com/guides/ugs-cli/latest/general/troubleshooting/project-roles/#deploy-command Add unity and economy ones only.
-
Now you are all set. Run
// To create a directory somewhere on your disk.
mkdir prodConfig
// Fetch config for economy from development environment into your newly created folder
ugs fetch prodConfig -e development -s economy --reconcile
// Copy fetch config from folder to production environment
ugs deploy prodConfig -e production
Above steps will copy your economy config from development to production environment.
Hope that helps.
Yep i did it with the discord support people, thank you anyway, this is a helpfull guide