# Steps for redeploying Alliance Tournament apps
Precondition: deployed NFT contract
Mainnet details:
Contract is KT1WQ1HWTQEZ1tSh2VmjxJ1xJCGz7kUQp35z
Admin account tz1WWcuiKUN4Ed5zouETqr7MbVzd3vkC4ubr
## DB
`DELETE FROM backend.users; DELETE FROM backend.nfts `
## Indexer
- stop indexer
- execute in db: `DROP SCHEMA killmail CASCADE;`
- execute in db: `DELETE FROM public.contracts CASCADE;` (delete everything because if we want to be able to switch tezos network, no contracts can be in here from the old network)
- `DROP TABLE tx_contexts CASCADE`
- change config to reference new contract ID
- run indexer w. new contract ID, appropriate network, BCD URL (and with `--reinit`)
- run indexer in normal mode
## Killmail processor
- stop killmail processor
- check that solar_system_id list is correct
- start killmail processor
## Peppermint
- stop peppermint
- DELETE FROM peppermint.operations
- change variables: "nftContract", "privateKey", "rpcUrl" to appropriate values
- restart peppermint.
## NFT generator
- set variable `originator` to an appropriate value
## backend
- set admin address in file `src/users/users.service.ts` line 34
## frontend
- stop frontend
- change `REACT_APP_NFT_CONTRACT` to an appropriate value in file `.env`
- re-read .env
- start frontend