running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
Instala o docker
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
Instala o docker-compose
| #!/bin/sh | |
| function get_project_path() | |
| { | |
| echo $(pwd | sed 's/\/home\/git\/repositories\///' | sed 's/\.git$//') | |
| } | |
| branch=$(git rev-parse --symbolic --abbrev-ref $1) | |
| if [ $branch == "hml" ] | |
| then |
| // Long Polling (Recommened Technique - Creates An Open Connection To Server ∴ Fast) | |
| (function poll(){ | |
| $.ajax({ url: "server", success: function(data){ | |
| //Update your dashboard gauge | |
| salesGauge.setValue(data.value); | |
| }, dataType: "json", complete: poll, timeout: 30000 }); | |
| })(); |
| server { | |
| listen 80; | |
| server_name CHANGEME.app; | |
| root /var/www/vhosts/CHANGEME.app/public; | |
| index index.html index.htm index.php; | |
| charset utf-8; | |
| location / { |
| # v2 sintax | |
| version: '2' | |
| # Named volumes | |
| volumes: | |
| # MySQL Data | |
| l5dbeka-mysql-data: | |
| driver: local | |
| # Postgres Data |
| Start Server Laravel | |
| *Update repositories | |
| sudo apt-get update | |
| *Locale Config | |
| locale-gen en_US en_US.UTF-8 pt_BR.UTF-8 | |
| *Install Mysql | |
| sudo apt-get install -y mysql-server |
| #!/bin/bash | |
| target_branch="production" | |
| working_tree="PATH_TO_DEPLOY" | |
| while read oldrev newrev refname | |
| do | |
| branch=$(git rev-parse --symbolic --abbrev-ref $refname) | |
| if [ -n "$branch" ] && [ "$target_branch" == "$branch" ]; then | |