Change Default iOS Simulator Device for React Native

react-native run-ios --simulator="iPhone 5s"
react-native run-ios --simulator="iPhone 6"
react-native run-ios --simulator="iPhone 6 Plus"
react-native run-ios --simulator="iPhone 6s"
react-native run-ios --simulator="iPhone 6s Plus"
react-native run-ios --simulator="iPhone 7"
react-native run-ios --simulator="iPhone 7 Plus"
react-native run-ios --simulator="iPhone 8"
react-native run-ios --simulator="iPhone 8 Plus"
react-native run-ios --simulator="iPhone SE"
react-native run-ios --simulator="iPhone X"
react-native run-ios --simulator="iPhone XR"
react-native run-ios --simulator="iPhone XS"
react-native run-ios --simulator="iPhone XS Max"
react-native run-ios --simulator="iPad Air"
react-native run-ios --simulator="iPad Air 2"
react-native run-ios --simulator="iPad"
react-native run-ios --simulator="iPad Pro"
react-native run-ios --simulator="iPad Pro"
react-native run-ios --simulator="iPad Pro"
react-native run-ios --simulator="iPad Pro"
react-native run-ios --simulator="iPad"

 

Ref: https://stackoverflow.com/questions/37328942/react-native-change-default-ios-simulator-device

Advertisements

Let’s Encrypt – Adding new domain with Certbot (Ubuntu 16.04, nginx)

sudo certbot --nginx -d <domain>

You may encounter the following error after running the above command:

Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA.

If that is the case, please use the following command instead:

sudo certbot --authenticator standalone --installer nginx -d <domain> --pre-hook "service nginx stop" --post-hook "service nginx start"

Laravel – Installation steps after cloning

    • Clone the project from Git repository
    • Go to the folder application using cd
    • Run composer install
    • Copy .env.example file to .env on root folder.  cp .env.example .env
    • Open .env file and change the database name (DB_DATABASE) , username (DB_USERNAME) and password (DB_PASSWORD)
    • Run php artisan key:generate
    • Run php artisan migrate
    • Run sudo chgrp -R www-data storage bootstrap/cache
    • Run sudo chmod -R ug+rwx storage bootstrap/cache