DEV Community

loading...
The DEV Team

Help Thread — DigitalOcean App Platform Hackathon on DEV

dev.to staff
The hardworking team behind dev.to ❤️
・1 min read

The DigitalOcean team will be making themselves available to help people who run into issues or have questions related to the App Platform as part of DigitalOcean App Platform Hackathon on DEV 🎉

If you get stuck or run into a question about App Platform, describe it in this thread for asynchronous assistance from members of the DigitalOcean team — they'll be monitoring this post regularly!

Happy coding ❤️

Discussion (74)

Collapse
chris__sev profile image
Chris Sev

Hey everyone. My name is Chris and I founded scotch.io and I'm a Developer Advocate at DigitalOcean.

If you've got questions about building apps and deploying to App Platform, let me know!

Here's a video on how to deploy a Laravel + React app to App Platform to get you started: youtu.be/1T3d7P_V2t4

Collapse
spiritbro1 profile image
spiritbro1

Hello chris i want to ask about deploy to DO button can we deploy two different repo using one deploy to DO button? because i saw in the documentation deploy to DO button can only deploy with limits of 1 service and 1 database because i have two different service one for backend as a service and the second one is a static site

Collapse
chris__sev profile image
Chris Sev

currently we don't support 2 repos with the deploy button but I understand that's a big request. would make the button very effective with that feature.

Thread Thread
spiritbro1 profile image
spiritbro1

yap waiting for that feature in the future but actually it helped when let's say we had static website and backend service api with so many environment variable we can just click that button and just connect the static website using some url for example that we can pass to that static website environment variable anyway thanks for the answer

Collapse
simkimsia profile image
simkimsia

Question to the DO team:

My #dohackathon app uses Django on Docker and push to DOAP.

Now I am stuck on how to setup a postgres. Typically, I have a separate container for postgres on my local dev env setup.

On DOAP, how should taht be done? your tutorial covers the use of droplet and recommends postgres cluster digitalocean.com/community/tutoria...

Given that this #dohackathon is about using DOAP, how do I use postgres within DOAP?

Thank you

Collapse
bobbyiliev profile image
Bobby Iliev

Hi there,

You can actually add a database component to your App platform directly. There is no need to set up a database server on a separate Droplet.

You can follow the steps on how to add a database component here:

digitalocean.com/docs/app-platform...

Collapse
simkimsia profile image
simkimsia

Ok thanks

Thread Thread
bobbyiliev profile image
Bobby Iliev

No problem! Good luck with this and have fun building! 🙌

Thread Thread
shaijut profile image
Shaiju T

Hi, I can see App Platform has free pan, So Can i deploy Commercial static websites and .NET Core API with 0 $ plan ?

digitalocean.com/products/app-plat...

Thread Thread
bobbyiliev profile image
Bobby Iliev

Hello 👋

The free plan is only for static sites. As you would have an API service, you would need to select the standard plan.

Collapse
peterdavehello profile image
Peter Dave Hello͌ͯͦ̉

Hello,

I have a few questions: How to make sure my submission is successful? Do we need to do anything else after using the official template to submit? Or do we need to provide the port URL somewhere?

Thanks a lot!

Collapse
bobbyiliev profile image
Bobby Iliev

Hi there Peter 👋 Good to hear that you are participating as well!

Yes, as long as you use the template and provide all of the necessary information in there like the link to your app, the link to your GitHub/GitLab repo, License and etc. it will be fine.

Also make sure to use the #dohackathon tag!

Collapse
peterdavehello profile image
Peter Dave Hello͌ͯͦ̉

Cool! Thanks for the lighting speed response Bobby⚡️!

Thread Thread
bobbyiliev profile image
Bobby Iliev

No problem and good luck!

Thread Thread
peterdavehello profile image
Peter Dave Hello͌ͯͦ̉

Well ... I'm not familiar with DEV platform and didn't notice that there is a published: config in the template need to be changed to true... until now lol ...

Collapse
szhabolcs profile image
Nagy Szabolcs

Hey there!
I ran into a pretty bad situation...
I first made an account with my main email trough GitHub, and entered a virtual card not thinking it would terminate itself after the test transaction from Digital Ocean. This caused me to get my account locked. I opened a ticket and explained the situation but they told me they can't restore my account due to violation of terms of services and for fraudulent behavior.

I hope you understand my situation, I was thinking about an idea for the past weeks and decided to start working on it today, but got blocked in the process.
I also tried another Gmail address, with the actual card, but the same thing happened.
Now I have two blocked accounts, I assume ip banned as well, and no way of even starting my project.

I was really into making something special and this would have been a chance for one of my projects to see a broader audience.

I hope someone could help me.
Thank you in advance!

Collapse
zaltsman profile image
Daniel Zaltsman

Hey Nagy - hoping to help you here so you can participate! Can you please shoot me an email with your account email information included? Daniel (at) DigitalOcean (.) com. Thanks!

Collapse
szhabolcs profile image
Nagy Szabolcs

Thank you Daniel!

I successfully created my account! 😄

Collapse
szhabolcs profile image
Nagy Szabolcs

Thank you! I sent you an email.

Collapse
milindsingh profile image
Milind Singh • Edited

I am trying to deploy my gridsome app with Digital Ocean Static Site, but failing with build process, any idea ?

Error: Failed to launch the browser process!
15:41:55 /workspace/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
Enter fullscreen mode Exit fullscreen mode
Collapse
awnton profile image
Anton Gunnarsson

Is it supported to declare a redis instance in a app.yaml-file and deploy it with the CLI?

When I add it like below it fails without giving a specific error:

name: hackathon-runner
region: ams
static_sites:
  - ...
databases:
  - name: hackathon-runner-redis
     engine: REDIS
     production: true
     cluster_name: hackathon-runner-db-cluster
Enter fullscreen mode Exit fullscreen mode
Collapse
ludeed profile image
Luís Silva

Hey, I filled the form to get the credits in order to participate in the Hackaton
But so far I didn't received any email or credits in my digital ocean account ?
How long is the wait on this ?

Thanks for any help in advance :D

Collapse
ludeed profile image
Luís Silva

Never mind just arrived xD

Collapse
chris__sev profile image
Chris Sev

Glad to hear it. I just pushed out the latest round of credits. Happy hacking!

Collapse
hulyakarakaya profile image
Hulya • Edited

Hi, I am trying to deploy my Gatsby app but I have Strapi plugin as localhost:1337 in the config file. I have tried to deploy strapi project from my github following Chris' video.. But it gave me an error. Is there any guide about how I can connect Gatsby to Strapi with Digital Ocean? Thanks a lot!

Collapse
chris__sev profile image
Chris Sev

hey there! are you able to deploy Strapi and see the admin dashboard once its deployed?

Collapse
hulyakarakaya profile image
Hulya • Edited

Hi, Chris! No, I couldn't deploy. I'm getting an error
Your build job failed because it returned a non-zero exit code. See the logs for details.
Error code: BuildJobExitNonZero

I have created env/production folders, database.js, and server.js like in the video. Used the same commands for deploying the app and connected to PostgreSQL.
img

Thread Thread
hulyakarakaya profile image
Hulya • Edited

Hi, Chris! I have fixed it thanks to other resources, now it looks like Strapi is deployed, but when I try to access the page it is not showing me the admin panel like in the workshop. How can I connect to the admin page? Thanks.

img

Thread Thread
chris__sev profile image
Chris Sev

looks like you may need to

npm install pg

in your project so that it can connect to the postgres database

Thread Thread
hulyakarakaya profile image
Hulya

It is still not working, i deployed the page with "pg" installed, same page ..

Collapse
phuctm97 profile image
Minh-Phuc Tran

HI DOAP, building a small that needs a web service (Node.js) and a worker Docker container. The Node.js service needs to access the worker container. I'm struggling to find documentation about this, try to add workers to my app spec but doesn't work, please help, here is my deploy config: https://github.com/phuctm97/img-node/blob/master/.do/deploy.template.yaml

Collapse
jonfriesen profile image
Jon Friesen

👋 Minh-Phuc

Workers cannot be accessed by a service internally or externally. A possible solution is to have your worker reach out for work to do from your service. You can use your service name as a DNS record to make accessing your service easier and faster.

For example, if my service is called app I can access it from my worker using http://app.

Collapse
aryan040501 profile image
aryan040501

I had submitted a project and I didn't even get a mail for participating. Can you please help.
Link to project template: dev.to/aryan040501/digital-ocean-s...

Collapse
rommik profile image
Roman Mikhailov

Hello, could you clarify this requirement?

Use a permissive license for your code (ex: MIT, Apache-2)

do we have to share the code with the reviewers? Will it be made public to a general community?

I’d like to participate, but the project will grow into a business that won’t be open source. How can I protect the IP and still participate?

Collapse
chris__sev profile image
Chris Sev

Would the "Commons Clause" license fit? That's acceptable also:

Collapse
graciegregory profile image
Gracie Gregory (she/her)

Hi Roman! We have updated this item in the announcement post to be more license specific. I hope this helps!

Collapse
rommik profile image
Roman Mikhailov

Thanks Chris and Gracie, yeah it is helpful and I think the Commons Clause will do.

Collapse
arpan45 profile image
Arpan Adhikari

I have added my submission
dev.to/arpan45/simple-quiz-applica...

Will there be any confirmation if it is valid or not.

I have followed all the steps mentioned. But still asking just for confirmation.

Collapse
bobbyiliev profile image
Bobby Iliev

Hi there 👋

As long as your application is deployed on the DigitalOcean App platform and as long as you have created your post on DEV you should be fine 🙌

Collapse
milindsingh profile image
Milind Singh

My gridsome static site build fails in Digital Ocean, any idea?

/workspace/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
Enter fullscreen mode Exit fullscreen mode
Collapse
abhinavd26 profile image
Abhinav Dubey

Hello, #teamDO,
I have a simple doubt regarding the registration and submission of our project for this hackathon.

  1. How we will get to know that we are successfully registered for the hackathon? Weather we will get any kind of confirmation mail or something else ???

  2. How to form teams and how to make team submissions for the project?

Collapse
bobbyiliev profile image
Bobby Iliev

As long as your application is deployed on the DigitalOcean App platform and as long as you have created your post on DEV you should be fine 🙌

Group submissions are allowed but note that the prize will be shared. For more information on that you can check the official DEV Hackathon rules here:

dev.to/page/official-hackathon-rules

Collapse
vimal profile image
VIMAL KUMAR

Can i Use my old Project ?

Collapse
bobbyiliev profile image
Bobby Iliev

Hey 👋

I believe that it should be ok as long as it is deployed on the App platform.

Make sure to add the "Deploy to DigitalOcean" Button to your repo for bonus points 🙌

Collapse
vimal profile image
VIMAL KUMAR

Thanks 🙌

Thread Thread
bobbyiliev profile image
Bobby Iliev

No problem! Good luck with this and have fun building!

Collapse
abidishajia profile image
Shajia Abidi

Hello,

I have an app in which I am using Node.js and MongoDB in the backend and React in the frontend (and auth0). And I am having trouble deploying using Digital Ocean.

I followed this page here(digitalocean.com/docs/app-platform...), but when I get to the Configure Your App part (Step 3/4), it doesn't detect anything. I was wondering if someone can help me with it. Thanks.

Collapse
highcenburg profile image
Vicente G. Reyes • Edited

SOLVED IT

Had to redeploy a new app to fix the issue.


Help!

My site is showing this:

It was ok last night but when I checked now, it showed this.

It can be accessed with rebrand-g34no.ondigitalocean.app but not on studio.icvn.tech

What's wrong with this?

Collapse
nethmirodrigo profile image
Nethmi Rodrigo

Hi there! I submitted a project that I did along with a team. I tagged the team members usernames in the article I submitted and although I received a badge my team members are yet to receive. dev.to/nethmirodrigo/advisor-do-ha... is the link to my post. Did I tag them wrong or will they be getting the badges in time as well?

Collapse
olaoluwam profile image
Olaoluwa Mustapha

Hey guys 👋

Super excited about the hackathon. However, would a pizza delivery app be a good fit for any of the categories? If not, what about an invoice template generator?

Collapse
bobbyiliev profile image
Bobby Iliev

Hi there 👋

Both ideas sound great! I believe that both would fit into the Built for Business category.

Collapse
martichou profile image
Martin André

Is it possible to have some secret for Docker using App Platform ?
I can't find any doc for that..

Collapse
jonfriesen profile image
Jon Friesen

👋 Martin,

We have some basic documentation here, we also have a sample project.

If we cannot detect your projects type using buildpacks, we will fallback to a Dockerfile if it's located in the root of your project. In the event that you'd prefer to use a Dockerfile instead of BuildPacks you can push configure this using am app.yaml, here is an example of one:

name: sample-dockerfile
services:
- dockerfile_path: Dockerfile
  github:
    branch: main
    deploy_on_push: true
    repo: digitalocean/sample-dockerfile
  name: sample-dockerfile
Enter fullscreen mode Exit fullscreen mode

Here is some documentation that covers creating apps with our command line tool doctl:

Reference for the DigitalOcean Command-Line Interface (doctl) with App Platform

Hope this helps! Happy Hacking 📣

Collapse
designrknight profile image
Abel Mathew

Hello,
Can we participate in this as a team?

Collapse
graciegregory profile image
Gracie Gregory (she/her)

Hello! Group submissions are allowed but note that the prize will be shared.

Collapse
yum profile image
Antariksh Verma • Edited

Hey guys, how to host a MERN stack app on Digital Ocean App Platform. Could you help me?

Collapse
deb17 profile image
Debashish Palit

Hi Chris,
I submitted the form to get the free credit, but have not received any email. When will I get an email?
Rgds.

Collapse
bobbyiliev profile image
Bobby Iliev

Hi there 👋

I believe that the credits are distributed within 2 business days. But you should get it soon.

Collapse
sheikh_ishaan profile image
Ishaan Sheikh

If I create an app but not upload it on App platform, is that a valid submission as I don't have a credit card and none of my debit card is working with PayPal 🙁

Collapse
bobbyiliev profile image
Bobby Iliev

Hello 👋

Your application has to be deployed to the DigitalOcean App Platform.

Collapse
rommik profile image
Roman Mikhailov

How long does it take to receive credits for DO after submitting the form?

Collapse
bobbyiliev profile image
Bobby Iliev

Hi there,

You would receive the credits within 2 business days after filling up the form.

Good luck with the hackathon and have fun building!

Collapse
suvink profile image
Suvin Nimnaka

Hi, I didnt get my participation badge yet. Any idea why?

Collapse
suvink profile image
Suvin Nimnaka

Hello! I didnt receive the badge even though I made a submission. Any idea why? 🤔

Collapse
atkonline profile image
atkonline • Edited

Is it still possible to join the hackathon? I would like to try out the new app platform and have a go at building somthing. Thank you.

Collapse
bobbyiliev profile image
Bobby Iliev

Hi there 👋

Yep you still have time to join and build something fun 🙌

Collapse
hardikchopra242 profile image
Hardik Chopra

If a team is participating,

  • Does every member gets a Badge on dev.to profile?
  • Does every member needs to post dohackathon posts or just one of the team member needs to?
Collapse
jess profile image
Jess Lee (she/her)

Hey @hardikchopra242 , we only need one submission post from the team but please include all participant usernames within the post and you'll all receive badges!

Collapse
atkonline profile image
atkonline

Can we still join the hackathon if we have not signed up yet? thank you.

Collapse
bobbyiliev profile image
Bobby Iliev

Hi there 👋

Yes, the Hackathon is still ongoing so you still have time to join.

Forem Open with the Forem app