... | ... | @@ -2,23 +2,26 @@ |
|
|
## Win 10-11
|
|
|
### если у вас уже есть файлы sshkey и sshkey.pub
|
|
|
_Чтобы начать запустите povershell от имени администратора_
|
|
|
`@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"`
|
|
|
`Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))`
|
|
|
`choco install -y python3 git.install`
|
|
|
`Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0`
|
|
|
`Get-Service ssh-agent | Tee-Object Start-Service`
|
|
|
`Start-Service ssh-agent`
|
|
|
`Get-Service -Name ssh-agent | Set-Service -StartupType Manual`
|
|
|
`ssh-add sshkey`
|
|
|
`ssh -T git@hub.mos.ru`
|
|
|
`git config --global core.sshCommand "'C:\Windows\System32\OpenSSH\ssh.exe'"`
|
|
|
`git clone git@hub.mos.ru:romazanovrushan/Project-38.git`
|
|
|
`cd Project-38`
|
|
|
`pip install venv`
|
|
|
`python -m venv .venv`
|
|
|
`.venv\Scripts\Activate.ps1`
|
|
|
`python -m pip install pillow Django`
|
|
|
`python3 manage.py migrate`
|
|
|
`python3 manage.py runserver`
|
|
|
|
|
|
### если ключей нет
|
|
|
_Чтобы начать запустите povershell от имени администратора_
|
|
|
`@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"`
|
|
|
`Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))`
|
|
|
`choco install -y python3 git.install`
|
|
|
`Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0`
|
|
|
`Get-Service ssh-agent | Tee-Object Start-Service`
|
... | ... | @@ -31,6 +34,9 @@ _Чтобы начать запустите povershell от имени адми |
|
|
`git config --global core.sshCommand "'C:\Windows\System32\OpenSSH\ssh.exe'"`
|
|
|
`git clone git@hub.mos.ru:romazanovrushan/Project-38.git`
|
|
|
`cd Project-38`
|
|
|
`pip install venv`
|
|
|
`python -m venv .venv`
|
|
|
`.venv\Scripts\Activate.ps1`
|
|
|
`python -m pip install pillow Django`
|
|
|
`python3 manage.py migrate`
|
|
|
`python3 manage.py runserver`
|
... | ... | |