-
Start story in pivotal tracker and copy it id (STORY_ID).
-
Checkout development branch and pull from remote
🏃♂️
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
function putZeroDate(number) { | |
if (number <= 9) { | |
return '0' + number; | |
} | |
return number; | |
} | |
function dateFormat(dateTime) { | |
if (new Date(dateTime) == 'Invalid Date') { | |
return 'Invalid Date' |
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
//------ ROOT -------- | |
root# apt-get update | |
root# apt-get upgrade | |
// Dependencies | |
apt-get install -y git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev \ | |
libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev \ | |
libpcre3-dev unzip htop zip | |
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
# vim /etc/systemd/system/sidekiq.service | |
# sudo systemctl start sidekiq.service | |
# sudo systemctl enable sidekiq.service | |
[Unit] | |
Description=Sidekiq for emedcert (staging) | |
Wants=nginx.service postgresql.service | |
After=redis.service postgresql.service | |
[Service] |
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
deploy: | |
image: ubuntu:latest | |
stage: deploy | |
only: | |
- master | |
before_script: | |
- 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' | |
- apt-get install -y rsync | |
- mkdir -p ~/.ssh | |
- chmod 700 ~/.ssh |
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
gem 'interactor' | |
gem 'whenever', require: false | |
gem 'render_async' | |
gem 'figaro' | |
gem 'dotenv' | |
gem 'dotenv-rails', groups: [:development, :test] |
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
AllCops: | |
DisplayCopNames: true | |
DisplayStyleGuide: true | |
TargetRubyVersion: 2.4 | |
DisabledByDefault: true | |
Exclude: | |
- db/**/** | |
- bin/* | |
# Prefer &&/|| over and/or. |
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
1) Go to bitbucket add ssh key Known hosts | |
// Add server id_rsa.pub to this link | |
https://bitbucket.org/winstrategy/NAME_PROJECT/admin/access-keys/ | |
// Generate SSH pub and private and add pub to server | |
https://bitbucket.org/winstrategy/NAME_PROJECT/admin/addon/admin/pipelines/ssh-keys | |
// Add dotnet service | |
deployer$ sudo vim /etc/systemd/system/dotnet.service |
OlderNewer