Giter Site home page Giter Site logo

dinrplan's People

Contributors

godsmith avatar

Watchers

 avatar  avatar

dinrplan's Issues

Got 502 from server

Using the web CLI, I could run a few commands. The dinrplan-db was listed as suspended, and the machine had not started:

/app/bin $ fly apps list
NAME                                    OWNER           STATUS          PLATFORM        LATEST DEPLOY 
dinrplan                                personal        deployed        machines        8m28s ago    
dinrplan-db                             personal        suspended       machines                     
fly-builder-billowing-cloud-7534        personal        deployed        machines  

/app/bin $ fly checks list -a dinrplan-db
Health Checks for dinrplan-db
  NAME | STATUS  | MACHINE        | LAST UPDATED         | OUTPUT                      
-------*---------*----------------*----------------------*-----------------------------
  pg   | warning | 5683074f00d08e | 2023-06-26T20:33:15Z | the machine hasn't started  
-------*---------*----------------*----------------------*-----------------------------
  role | warning | 5683074f00d08e | 2023-06-26T20:33:15Z | the machine hasn't started  
-------*---------*----------------*----------------------*-----------------------------
  vm   | warning | 5683074f00d08e | 2023-06-26T20:33:15Z | the machine hasn't started  
-------*---------*----------------*----------------------*-----------------------------

However, I could not restart it:

/app/bin $ fly pg restart -a dinrplan-db
Error: no active leader found

But I could restart the machine dinrplan-db was running on, and that fixed it:

/app/bin $ fly machine list -a dinrplan-db
1 machines have been retrieved from app dinrplan-db.
View them in the UI here (​https://fly.io/apps/dinrplan-db/machines/)

dinrplan-db
ID              NAME                    STATE   REGION  IMAGE                           IP ADDRESS                              VOLUME                 CREATED                 LAST UPDATED            APP PLATFORM    PROCESS GROUP   SIZE                
5683074f00d08e  winter-forest-5654      stopped ams     flyio/postgres:14.6 (v0.0.34)   fdaa:0:a08f:a7b:23c5:dd86:e028:2        vol_5podq4qzxed4g8w1   2023-03-09T18:25:11Z    2023-06-26T20:33:15Z                    app             shared-cpu-1x:256MB

/app/bin $ fly machine restart 5683074f00d08e -a dinrplan-db
Restarting machine 5683074f00d08e
  Waiting for 5683074f00d08e to become healthy (started, 3/3)
Machine 5683074f00d08e restarted successfully!
/app/bin $ fly pg list
NAME            OWNER           STATUS          LATEST DEPLOY 
dinrplan-db     personal        deployed                     

/app/bin $ fly checks list -a dinrplan-db
Health Checks for dinrplan-db
  NAME | STATUS  | MACHINE        | LAST UPDATED | OUTPUT                                                                   
-------*---------*----------------*--------------*--------------------------------------------------------------------------
  pg   | passing | 5683074f00d08e | 25s ago      | [✓] transactions: read/write (192.07µs)                                  
       |         |                |              | [✓] connections: 11 used, 3 reserved, 300 max (3.89ms)                   
-------*---------*----------------*--------------*--------------------------------------------------------------------------
  role | passing | 5683074f00d08e | 26s ago      | leader                                                                   
-------*---------*----------------*--------------*--------------------------------------------------------------------------
  vm   | passing | 5683074f00d08e | 49s ago      | [✓] checkDisk: 805.58 MB (82.5%) free space on /data/ (32.12µs)          
       |         |                |              | [✓] checkLoad: load averages: 0.00 0.00 0.00 (57.18µs)                   
       |         |                |              | [✓] memory: system spent 0s of the last 60s waiting on memory (34.64µs)  
       |         |                |              | [✓] cpu: system spent 168ms of the last 60s waiting on cpu (15.91µs)     
       |         |                |              | [✓] io: system spent 246ms of the last 60s waiting on io (14.65µs)       
-------*---------*----------------*--------------*--------------------------------------------------------------------------
/app/bin $ 

Make is_created a BooleanField instead

Currently you just check if the ingredientsfield is filled in, which is a bit crude. A better way would be to set it when you update the recipe for the first time. That is also the way it works in old dinnerplan.

Recipe list

Must be able to click the recipes. Preferably to open them in a modal or something.

Archive feature

Perhaps needed because we want to import all the recipes at once, but we don't want all of them visible in the list. Perhaps this feature can be removed later.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.