So I have a Discourse forum called mathbymiles.com that I got from Digital Ocean as a 1-click droplet.
Now I am trying to package the site into a PWA with pwabuilder, and one of the first steps is in the guide to uploading an Google Play app is to put the file assetlinks.json at the location https://mathbymiles/.well-known/assetlinks.json.
How do I do this? As a noob, I have no idea. I have the generated assetlinks.json file, but I don’t how to “put it” in that location.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Heya,
Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.
To put the assetlinks.json file at that location, you’ll need to access your droplet and create the file in the corresponding directory. If the directory does not exist, you should create it. You can follow these general steps:
/var/www/discourse, you would use the command: cd /var/www/discourse.mkdir .well-known. Please note the ‘.’ before ‘well-known’ which signifies a hidden directory..well-known directory using: cd .well-known.assetlinks.json file here and modify it as required.The process of creating and modifying a file can be done with an editor like nano or vim, for example:
- nano assetlinks.json
Then paste in the content of your file. Save and close the file.
I’d recommend reading our guide on basic Linux commands to understand how you can navigate and operate within your droplet:
https://www.digitalocean.com/community/tutorials/basic-linux-navigation-and-file-management
Please note that paths and commands may vary slightly depending on the configuration and setup of your server.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.