MightyMoud / sidekick

Bare metal to production ready in mins; your own fly server on your VPS.
https://www.sidekickdeploy.com
GNU General Public License v3.0
5.97k stars 98 forks source link

Error: exit status 1 #55

Closed fermumen closed 2 weeks ago

fermumen commented 2 weeks ago
fernando@Fernandos-MBP-2 hello_sidekick % sidekick launch
5:34PM INFO Dockerfile: Detected - scanning file for details
Please enter your app url friendly app name: hsk1
Please enter the port at which the app receives request: E 80
Please enter the domain to point the app to: hsk1.130.162.160.104.sslip.io
Please enter which env file you would like to load .env
5:35PM INFO Env File: Not Detected - Skipping env parsing

                                             Launching your application on your VPS 🚀                                             

 ✔ VPS is reachable                                                                                                                
 ✔ Latest docker image built                                                                                                       
 ✔ Image saved successfully                                                                                                        
 ✔ Image moved and loaded successfully                                                                                             
 âš  Setting up your application                                                                                                     
 └── exit status 1     

Getting the current exit status 1 for a very simple docker image for nginx + hello world index.html file I'm using OrbStack to build the image but making sure platform is amd64 and not arm Is there a way I can print more information?

Additionally: After a failure like this I can't relaunch to the same name or redeploy to the same name because the file already exists and I need to ssh into the VPS and delete folders. Is there a way in Sidekick to unlaunch?

MightyMoud commented 2 weeks ago

Hi @fermumen I'll add a delete project command soon. I think it's been asked multiple times now.

I'll make a release this weekend.

But can I ask why are you deploying an nginx server? Sidekick is not meant for that. Remember Sidekick already setup Traefik on your VPS. Adding nginx means that nginx would be behind traefik too... I always recommend a place that offers CDN for any static asset deployment. CF pages, Github pages and the like.

If there a special reason for this, I can add a command for you to serve static assets directly through traefik. That would make more sense.

Finally I know the error reporting is still poor. It's harder than it sounds. Please bear with me as I get this right

fermumen commented 2 weeks ago

You are right not the best example! I just wanted to check that the set up worked and I couldn't think of anything more original. Keep up the good work it's an amazing project!

MightyMoud commented 2 weeks ago

This is now fixed thanks to @dejanstrancar 🎉