подключаемся к серверу и ставим Ansible
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible
<%# views/application/autocomplete/_field.html.erb %> | |
<div | |
data-controller="autocomplete" | |
data-autocomplete-multiple-value=true | |
data-autocomplete-search-path-value=<%= local_assigns[:search_path] %> | |
data-autocomplete-search-param-value=<%= local_assigns[:search_param] %> | |
data-autocomplete-selected-class="bg-n42-blue text-white" | |
data-action="autocomplete:click:outside->autocomplete#hide" | |
class="relative" |
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDCceFZtbCWXTIyICGN+fEcmW9tJITAU1Wdpf/+no79ZwMkvb6gdM3fAAVPdTvc8aZbJvKTFk/dVukDonf/5p8woAyDD6aZX1PHbND1n1o6kgMY69IHVUntFuKihHSKJ7DKdj3Braa9VTPlYzVysDxINp/NXWBg+mfPqFJDHibBIzR7SwIIQSt4SYr97xEzf7DPiXkNeXHT8vqD4L5jSHwFne55XegMla1Cvvy/tNMQ6+IFe1SLePPRWaTEMZ+RoF41RqBKCpFVRkxpblBq9N/AbON6Xs0ngtyjK58hTgNYr8H0uTC/cp4lzjOErxruJlZDBFG0FQ5bznHaSGp60P7L finist@21sm |
upstream app { | |
# Path to Puma SOCK file, as defined previously | |
server unix://srv/servername/shared/sockets/puma.sock fail_timeout=0; | |
} | |
server { | |
listen 80; | |
server_name servername; | |
# listen 443 ssl; |
https://www.digitalocean.com/community/tutorials/how-to-add-and-delete-users-on-ubuntu-16-04
# Create new user with sudo
adduser develop
usermod -aG sudo develop
https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart
# Create new user with sudo
adduser develop
usermod -aG sudo develop
--- | |
- Адыгея: | |
- Абадзехская | |
- Адамий | |
- Адыгейск | |
- Новая Адыгея | |
- Нижний Айрюм | |
- Апостолиди | |
- Ассоколай | |
- Кармир-Астх |
class User < ActiveRecord::Base | |
has_many :mails | |
def messages_for_recipient(user) | |
mails.where(user_id: user.id).map(&:messages).flatten | |
end | |
end |
export PATH=/usr/local/bin:$PATH | |
Start manually: | |
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start | |
Stop manually: | |
pg_ctl -D /usr/local/var/postgres stop -s -m fast | |
pg_ctl -D /usr/local/var/postgres status |