osoc21 / technical-support

Technical Support
0 stars 1 forks source link

help with first-time shipping #15

Closed AnastasiaDv491 closed 3 years ago

AnastasiaDv491 commented 3 years ago

Is your request related to a problem? Please describe. not a problem, we jsut want to ship something and not wait until the last week

Describe the solution you'd like server where we can ship

Describe alternatives you've considered Netlify ?

jbelien commented 3 years ago

Hello @osoc21/the-deloitted-spaghettis ,

No worries, I've got your back!

What do you need ? What's your stack ?

AnastasiaDv491 commented 3 years ago

we need guidance in shipping i believe

jbelien commented 3 years ago

No worries ! I'll help you with the shipping ! 😃

I just need to know what are the "components" you're using in your front-end/back-end to choose the "best" deployment solution.

AnastasiaDv491 commented 3 years ago

we are using vite project, svelte and tailwind css

back end: flask + python API + docker

jbelien commented 3 years ago

Perfect! 👍

I'll deploy your project using DigitalOcean App Platform:

jbelien commented 3 years ago

Deployment is on its way! I'll let you know (here) when it's ready.

DigitalOcean App Platform configuration:

domains:
- domain: future-of-work.osoc.be
  type: PRIMARY
  zone: osoc.be
name: future-of-work
region: ams
services:
- dockerfile_path: /backend/Dockerfile
  github:
    branch: master
    repo: osoc21/Future-of-Work
  http_port: 4000
  instance_count: 1
  instance_size_slug: basic-xxs
  name: future-of-work
  routes:
  - path: /api
  source_dir: /backend
static_sites:
- build_command: npm run build
  environment_slug: node-js
  github:
    branch: master
    repo: osoc21/Future-of-Work
  name: future-of-work-app
  routes:
  - path: /
  source_dir: /frontend
jbelien commented 3 years ago

🚀 https://future-of-work.osoc.be/

For details, see configuration in previous commit: https://github.com/osoc21/technical-support/issues/15#issuecomment-883218905

"Autodeploy code changes" is now enabled. App (front-end + back-end) will be automatically redeployed each time you push to master branch.

Let me know if everything is working fine!


Side note: I've fixed your Dockerfile (see https://github.com/osoc21/Future-of-Work/commit/623ab67d923a3c92574eaf3b1602cdd9987c7924) and enabled a GitHub Actions workflow to check your Dockerfile is building correctly (see https://github.com/osoc21/Future-of-Work/actions/workflows/docker-image.yml)

AnastasiaDv491 commented 3 years ago

so everytime we push to master, those changes will appear?

jbelien commented 3 years ago

so everytime we push to master, those changes will appear?

Exactly! 🎉

AnastasiaDv491 commented 3 years ago

some things are on fire on our end we will try to check in on thursday sorry :(((

AnastasiaDv491 commented 3 years ago

so we tried putting most of it on master. however there are problems with docker-file. we are not sure which version to use since you changed. would it be possible to have a call with you tmr to make sure we dont screw it up?:D

jbelien commented 3 years ago

I don't understand what you mean by "we are not sure which version to use since you changed."

Deployment uses:

Ping me tomorrow morning for a call.

AnastasiaDv491 commented 3 years ago

alright, thank you!

archived-m commented 3 years ago

@jbelien I'll run compose in a full-blown droplet instead if that's alright with you :). I'll take care of the initial deploy and webhook setup. Thanks!

jbelien commented 3 years ago

🚀

I'll delete the App Platform stuff and redirect future-of-work.osoc.be to the droplet.

jbelien commented 3 years ago

Domain name future-of-work.osoc.be is now pointing to 167.71.72.187