xcrun simctl delete unavailable
xcrun simctl --set previews delete all
Google, Container-Optimized OS, 105-17412.156.30 LTS, Kernel: COS-5.15.120 Kubernetes: 1.25.5 Docker: 23.0.3 Family: cos-105-lts
.RUN chmod 777 /tmp
docker-compose down
docker image prune -a
docker system prune
docker-compose up -d
, it will rebuild all the needed image and set correct permission to /tmp
.Import json to functions config
firebase functions:config:set env="$(cat functions.config.json)"
Get the json
firebase functions:config:get env
Deploy Laravel on Docker using nginx-proxy
+ acme-companion
(formerly called docker-letsencrypt-nginx-proxy-companion
)
Prepare two seperate docker compose file i.e docker-compose.nginx.yml
& docker-compose.app.yml
Create nginx
directory and move docker-compose.nginx.yml
into it.
Create YOUR_DOMAIN.conf
and YOUR_DOMAIN_location_override.conf
in nginx
directory.
Since GCE's Container-Optimized OS do not include docker-compose
by default.
So, we need to use the official docker/compose image as a workaround.
However, docker/compose
cannot access GCR or GAR to pull private images.
Therefore we have to create a custom docker-compose image which is authenticated to GCR / GAR.
sudo usermod -a -G docker ${USER}
IAM & Admin -> Service Accounts -> Create service account
import { useEffect, useRef, useState } from 'react'; | |
export const useCountDown: ( | |
total: number, | |
ms?: number, | |
) => [number, () => void, () => void, () => void] = ( | |
total: number, | |
ms: number = 1000, | |
) => { | |
const [counter, setCountDown] = useState(total); |
import * as React from 'react'; | |
import { useEffect, useState } from 'react'; | |
import { Redirect, RedirectProps } from 'react-router'; | |
interface DelayProps { | |
delay: number; | |
} | |
const DelayRedirect = ({ delay, ...rest }: RedirectProps & DelayProps) => { | |
const [timeToRedirect, setTimeToRedirect] = useState(false); |