Dockerfile
FROM python:3.4
RUN apt-get update -y
RUN apt-get install -y python-pip build-essential
COPY ./path-to-app /app
WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt
ENV FLASK_APP=app.py
Dockerfile
FROM python:3.4
RUN apt-get update -y
RUN apt-get install -y python-pip build-essential
COPY ./path-to-app /app
WORKDIR /app
RUN pip install --no-cache-dir -r requirements.txt
ENV FLASK_APP=app.py
| ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄| | |
| boop | | |
| | | |
|__________| | |
(\_❀) || | |
(•ㅅ•) || | |
/ づ |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"fmt" | |
) | |
type Doggo struct { | |
Name string | |
Age int | |
} |
colorscheme desert | |
syntax enable "enable language specific syntax | |
set tabstop=4 "tabs are 4 spaces | |
set number "show line numbers on the right | |
set showcmd "show command at bottom | |
set wildmenu "show autocomplete options | |
set showmatch "highlight corresponding [{()}] | |
set laststatus=2 "always show status bar | |
set splitbelow "set split to bottom | |
set splitright "set split to right hand side |
Great talk on how webhooks work on a general level: https://vimeo.com/album/4045988/video/172433862
Set-up a webhook consumer like you would set-up any route in your app: http://cookieshq.co.uk/posts/how-to-receive-webhooks-in-your-ruby-on-rails-application/
Sometimes when you try to run your file, you may get an error because the file is not in your Ruby path. You can:
Run irb -I.
to fix this but this is a pain. You could alias irb
to irb -I.
...
You could also use bundle console
to open irb with your gem code loaded (assuming that you _are_using bundler).
You could also...
task :console do
require 'irb'
package main | |
import "fmt" | |
func main() { | |
for i := 0; i <= 500; i++ { | |
//Print the integer, the string of i (rune), and the bytes of i | |
fmt.Println(i, " - ", string(i), []byte(string(i))) | |
} |