If the TokenScript files in the repo is updated, the sysop should recreate the .htaccess
file by:
$ make .htaccess
This would generate a new .htaccess file based on the contract addresses mentioned in the TokenScript files.
Then, run this to upload the files. This will only work if you already configured SSH access:
$ make upload
This is tricky. You need 2 things:
- Adding your IP address to the whitelist. Official document
- Adding your key to the cPanel.
Note that the whitelist is not in the cPanel.
In reality, both are ticky.
- Adding your IP address to the whitelist - the whitelist only allows 3 entries, you need to delete an old one to add a new one.
- Adding SSH public key: It's better to add your SSH public key by asking a colleague to do the following, avoid using cPanel at all, since cPanel requires you to share your private key, which should not be shared in any case.
$ ssh -p 2683 [email protected]
$ cat >> .ssh/authorized_keys
The Makfile generates a list of rewrite rules for accessing TokenScript files based on their token contract addresses. See more in how_it_works.md