Install, build and debug a react native app in WSL2 (Windows Subsystem for Linux) and Ubuntu.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name localhost; | |
listen 80 ; | |
access_log /var/log/nginx/access.log; | |
location / { | |
if ($request_method = OPTIONS) { | |
return 204; | |
} | |
proxy_redirect off; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019-08-02 02:34:33.335308-0300 sugahapp[28061:148383] <Warning>: The value for FacebookAdvertiserIDCollectionEnabled is currently set to FALSE so you're sending app events without collecting Advertiser ID. This can affect the quality of your advertising and analytics results. | |
2019-08-02 02:34:33.458023-0300 sugahapp[28061:148383] Falling back to loading access token from NSUserDefaults because of simulator bug | |
2019-08-02 02:34:33.458142-0300 sugahapp[28061:148383] Falling back to storing access token in NSUserDefaults because of simulator bug | |
2019-08-02 02:34:33.462611-0300 sugahapp[28061:148383] FBSDKLog: FBSDKGraphRequestConnection cannot be started before Facebook SDK initialized. | |
2019-08-02 02:34:33.467320-0300 sugahapp[28061:148383] FBSDKLog: FBSDKGraphRequestConnection cannot be started before Facebook SDK initialized. | |
2019-08-02 02:34:33.467842-0300 sugahapp[28061:148383] FBSDKLog: FBSDKGraphRequestConnection cannot be started before Facebook SDK initialized. | |
2019-08-02 02:34:33.568685-0300 sugahapp[2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2019-08-03 10:14:14 PM +0000 [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fbc2aebab70:'/Users/john/Library/Developer/Xcode/Archives/2019-08-02/TaiyoApp 02-08-19 11.03 PM.xcarchive/Products/Applications/tayoapp.app/Frameworks/FBSDKShareKit.framework'>: Error Domain=NSCocoaErrorDomain Code=4 "Item at "/Users/john/Library/Developer/Xcode/Archives/2019-08-02/TaiyoApp 02-08-19 11.03 PM.xcarchive/Products/Applications/tayoapp.app/Frameworks/FBSDKShareKit.framework" did not contain a "archived-expanded-entitlements.xcent" resource." UserInfo={NSLocalizedDescription=Item at "/Users/john/Library/Developer/Xcode/Archives/2019-08-02/TaiyoApp 02-08-19 11.03 PM.xcarchive/Products/Applications/tayoapp.app/Frameworks/FBSDKShareKit.framework" did not contain a "archived-expanded-entitlements.xcent" resource.} | |
2019-08-03 10:14:14 PM +0000 [OPTIONAL] Didn't find archived user entitlements for <DVTFilePath:0x7fbc2aec32e0:'/Users/john/Library/Developer/Xcode/Archives/2019-08-02/TaiyoApp 02-08-19 11.03 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name localhost; | |
listen 80; | |
access_log /var/log/nginx/access.log; | |
location / { | |
if ($request_method = OPTIONS) { | |
return 204; | |
} | |
proxy_redirect off; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import supertest from "supertest"; | |
import app from "../../../app"; | |
import { connect, disconnect } from "../../../../test/database"; | |
import { | |
generateUser, | |
removeUsers, | |
removePlates, | |
generatePlate | |
} from "../../../../test/helper"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mongoose = require("mongoose"); | |
const { MongoMemoryServer } = require("mongodb-memory-server"); | |
let mongoServer = null; | |
const connect = async () => { | |
mongoose.Promise = global.Promise; | |
mongoServer = new MongoMemoryServer(); | |
const mongoUri = await mongoServer.getUri(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"applinks": { | |
"apps": [], | |
"details": [ | |
{ | |
"appIDs": [ | |
"JZS429223Z.com.playlegis" | |
], | |
"appId": "JZS429223Z.com.playlegis", | |
"components": [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Overrides Rails file activerecord/lib/active_record/schema_dumper.rb to | |
# include all schema information in the db/schema.rb file, for example, in the | |
# create_table statements. This allows for a working development database | |
# to be built from a schema.rb file generated by rake db:schema:dump. | |
# | |
# This is essentially a rebuild of the "schema_plus_multischema" gem (which is | |
# unfortunately only compatible with Rails ~> 4.2). | |
# | |
# Tested with Rails 6.0. |
OlderNewer