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
FROM python:3.6 | |
# Create app directory | |
WORKDIR /app | |
# Install app dependencies | |
COPY src/requirements.txt ./ | |
RUN pip install -r requirements.txt |
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
FROM python:3.6 | |
# Create app directory | |
WORKDIR /app | |
# Install app dependencies | |
COPY static_app/requirements.txt ./ | |
RUN pip install -r requirements.txt |
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
FROM python:3.6 | |
# Create app directory | |
WORKDIR /app | |
# Install app dependencies | |
COPY gunicorn_app/requirements.txt ./ | |
RUN pip install -r requirements.txt |
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
FROM node:carbon | |
# Create app directory | |
WORKDIR /app | |
# Install app dependencies | |
# A wildcard is used to ensure both package.json AND package-lock.json are copied | |
# where available (npm@5+) | |
COPY package*.json ./ |
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
FROM node:carbon | |
# Create app directory | |
WORKDIR /app | |
# Install nodemon for hot reload | |
RUN npm install -g nodemon | |
# Install app dependencies | |
# A wildcard is used to ensure both package.json AND package-lock.json are copied |
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
FROM node:carbon | |
# Create app directory | |
WORKDIR /app | |
# Install app dependencies | |
RUN npm -g install serve | |
# A wildcard is used to ensure both package.json AND package-lock.json are copied | |
COPY package*.json ./ |
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
FROM node:carbon | |
# Create app directory | |
WORKDIR /app | |
# Install app dependencies | |
# RUN npm -g install serve | |
# A wildcard is used to ensure both package.json AND package-lock.json are copied | |
COPY package*.json ./ |
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 LogRocket from 'logrocket'; | |
// Initialize LogRocket with your app ID | |
LogRocket.init(<your_application_id>); |
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 { applyMiddleware, createStore } from 'redux'; | |
const store = createStore( | |
reducer, // your app reducer | |
applyMiddleware(middlewares, LogRocket.reduxMiddleware()), | |
); |
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
LogRocket.identify('<user_id>', { | |
name: '<name>', | |
email: '<email>', | |
// Add your own custom user variables here, ie: | |
<custom_type>: '<custom_value' | |
}); |
OlderNewer