Данная пошаговая инструкция поможет освоить основы на простом примере
Для справки
Сервер поднимался на Debian 8
c характеристиками:
CPU - 1 ядро x 500 МГц
function MyResponsiveComponent() { | |
const width = useWindowWidth(); // Our custom Hook | |
return ( | |
<p>Window width is {width}</p> | |
); | |
} |
(() => { | |
if(!navigator.mediaDevices) { | |
navigator.mediaDevices = {} | |
} | |
if (!navigator.mediaDevices.getUserMedia) { | |
navigator.mediaDevices.getUserMedia = ( | |
navigator.mediaDevices.webkitGetUserMedia || | |
navigator.mediaDevices.mozGetUserMedia || | |
navigator.mediaDevices.msGetUserMedia || |
import React, { Component } from 'react'; | |
import { graphql } from 'react-apollo'; | |
import { gql } from 'graphql-tools'; | |
const QUERY = gql` | |
query MatchesByDate($date: Int) { | |
matches(date: $date) { | |
id | |
minute | |
period |
ec2-54-152-134-146.compute-1.amazonaws.com.
Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.
for 64bit:
"C:\Program Files\Git\bin\sh.exe" --login -i
for 32bit:
"C:\Program Files (x86)\Git\bin\sh.exe" --login -i