Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No public/private url for the files #62

Open
toastdoteth opened this issue Jul 28, 2024 · 6 comments
Open

No public/private url for the files #62

toastdoteth opened this issue Jul 28, 2024 · 6 comments

Comments

@toastdoteth
Copy link

Digital Ocean only provide a single URL to the file in which its access is changed via a setting on DO. I think this breaks things?

@liarco
Copy link
Member

liarco commented Aug 1, 2024

Hi @toastdoteth, I need a bit more context to understand what you mean. The files are served through your S3 bucket directly. What URL are you talking about exactly?

I would suggest you to watch my video tutorials which show you the full process. If you have quest any questions you can also join the Open Devs Crew as we provide public support for bugs only.

@toastdoteth
Copy link
Author

toastdoteth commented Aug 1, 2024 via email

@liarco
Copy link
Member

liarco commented Aug 1, 2024

I'm not sure I get what you refer to (if this is not what you mean, then please share the time of the video so I can check the exact step where I tell you that). Anyways, the public URI was served by the DO's UI for convenience, but you can construct it on your own by using the bucket name, the region and the path that you used for the public files (e.g. https://YOUR_BUCKET.YOUR_REGION.digitaloceanspaces.com/PATH/TO/THE/PUBLIC/FOLDER, check the video for the exact format as you may need to have a full path with a wildcard, like .../{TOKEN_ID}.json).

I have to say that I can still see the option to grab the public URL from DO:
https://github.com/user-attachments/assets/f92eaa73-f82c-4a2e-8ce4-c05c2d779a68

Please note that by "the public URL" I don't mean that it's actually "publicly accessible" all the time, what I mean is that my tool is gonna make the files available in that place, when needed.

Let me know if this helps.

@toastdoteth
Copy link
Author

Thanks for coming back to me. I've messaged you on Twitter but to summarise here.. I hadnt followed correctly your tutorial but since corrected utilising private/public folders and setting the env correctly but the build is failing as its not importing typescript or something. I'm not sure if it will work anyway considering its been a couple of years but if you wouldnt miund checking your DMs on Twitter where Ive sent you some screens. Cheers

@liarco
Copy link
Member

liarco commented Sep 20, 2024

Thank you @toastdoteth.

As mentioned on Twitter, the project still works as intended, but it seems like DigitalOcean has changed a few things that make the build fail.

For context: now the dev dependencies are removed from the project before running the custom build command, this makes the build fail as tsc cannot be found. Luckily, there's a quick fix because they recognize my standard build command and they run it for you, so you can simply remove the "custom build command" and everything should work as expected until I have time to fix this on the repo.

Here are some instructions...

Fix an existing deployment

  1. go to the app settings
  2. click on the resource name (you should have just one)
  3. scroll down to the "Commands" section and click "Edit"
  4. remove the custom build command and save (you should see the same result as in the screenshot below)
Screenshot 2024-09-20 at 10 10 20

New deployment

  1. once you start configuring your app on DigitalOcean, click on the "Edit" button next to the only available resource
  2. then edit the build command and leave it blank (you should see the same result as in the screenshots below)
Screenshot 2024-09-20 at 10 16 20 Screenshot 2024-09-20 at 10 17 08

@toastdoteth
Copy link
Author

Amazing. It works! Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants