This file contains hidden or 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
ivan@filin:~/learn/ansible/rocky_linux$ ansible-playbook -i hosts mc.yml --ask-become-pass -vvvvv | |
ansible-playbook [core 2.17.7] | |
config file = /home/ivan/learn/ansible/rocky_linux/ansible.cfg | |
configured module search path = ['/home/ivan/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /home/ivan/.local/lib/python3.10/site-packages/ansible | |
ansible collection location = /home/ivan/.ansible/collections:/usr/share/ansible/collections | |
executable location = /usr/bin/ansible-playbook | |
python version = 3.10.12 (main, Nov 6 2024, 20:22:13) [GCC 11.4.0] (/usr/bin/python3) | |
jinja version = 3.0.3 | |
libyaml = True |
This file contains hidden or 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. Копируем ключ ssh на сервер ssh-copy-id user@server | |
2. Отключаем доступ по паролю в etc/ssh/sshd_config (passwordAuthentication=no) service ssh restart | |
3. |
This file contains hidden or 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. С помощью SQL (DDL): | |
#Создайте базу данных test_guru | |
CREATE DATABASE test_guru; | |
#Таблицу categories с атрибутом title | |
CREATE TABLE categories ( | |
id serial PRIMARY KEY, | |
title varchar(50) | |
); |
This file contains hidden or 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
#GET запрос без параметров | |
ncat -C httpbin.org 80 | |
GET / HTTP/1.1 | |
Host: httpbin.org | |
#GET запрос с любыми параметрами строки URL | |
ncat -C httpbin.org 80 | |
GET /string?arg1=25 HTTP/1.1 | |
Host: httpbin.org | |
This file contains hidden or 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
----- MAC раработчика ---------------- | |
brew install postgresql | |
createdb test_guru | |
psql test_guru | |
Добавить пользователя postgres : create user barsofa with createdb login password '123'; | |
--- По курсу на Udemy ----- |
This file contains hidden or 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
По своему опыту и по общению с другими, могу выделить такие вещи: | |
Linux, Bash и Git. По Linux есть хорошие курсы на Stepic от института биоинформатики, | |
а по Git нет ничего лучше книги Pro Git ( есть рус вариант). | |
Веб-сервер. Понимать как работает и что происходит на пути от пользователя до бэкэнда. | |
Знать где лежат логи сервера и уметь ими пользоваться (включая логи nginx/apache). | |
Тут полного объёма знаний от вас не требуют, но общее понимание нужно + желательно знать как поднять сервер | |
на nginx/Apache (ИМХО лучше брать nginx) |
This file contains hidden or 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
---- rake ------------------------ | |
rake db:migrate RAILS_ENV=test - применить миграции для тестовой базы | |
---- запуск на ubuntu ------------ | |
если не работает rvm - стартуем bash --login | |
в терминале ставим галочку! | |
----------- | |
rails server - рельсы запускаются в окружении development | |
rails server -e - рельсы запускаются в окружении production |
This file contains hidden or 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
В терминале браузера: | |
window.localStorage.clear(); - Удалить все значения в localStorage |
This file contains hidden or 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
-------------- Если настраиваем под один проект (Без RVM) | |
1 - Устанавливаем ruby (sudo apt install ruby) | |
2 - Устанавливаем sqlite3 в систему sudo apt install sqlite3 | |
3 - Устанавливаем gem sqlite3 (sudo apt install libsqlite3-dev) | |
4 - bundle install - Error | |
5 - Need to install RVM? https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rvm-on-ubuntu-16-04 | |
Помогло: | |
1 - Удаление строки gem sqlite3 в Gemfile и Gemfile.lock | |
2 - Перезагрузка компьютера и заново bundle install |
This file contains hidden or 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
Docker, | |
Capistrano, | |
Chef |
NewerOlder