-
Notifications
You must be signed in to change notification settings - Fork 20
Публикация вместе с RUNTIME в виде артефактов GA #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
86847d0
Merge branch 'develop'
EvilBeaver 90e0352
Версия образа из переменной
EvilBeaver 28d5d9d
Create dotnet-core.yml
EvilBeaver 40bbafd
Merge branch 'develop' into GA-script
EvilBeaver a9a3512
Update dotnet-core.yml
EvilBeaver 47a2a8f
попытка починить ресолв зависимостей
EvilBeaver eb981eb
Update dotnet-core.yml
EvilBeaver e0262a9
некорректный путь
EvilBeaver a0a1e9b
Update dotnet-core.yml
EvilBeaver 160a68a
добавил переменных
EvilBeaver 6ac60bd
Update dotnet-core.yml
EvilBeaver 6a784da
обновлен подмодуль
EvilBeaver 3916d07
Merge branch 'develop' into GA-script
EvilBeaver d353c25
Черновик сборки netcore
otymko ebcaf2c
Merge pull request #77 from otymko/patch-1
EvilBeaver cc643c4
Исправлены ошибки запуска на 3.1
EvilBeaver 04eda49
Merge branch 'GA-script' of https://github.com/EvilBeaver/OneScript.W…
EvilBeaver 0b6df77
Публикация вместе с RUNTIME
aliczin 7bc0930
Merge branch 'develop' into GA-script
aliczin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # Отладочное приложение для разработчика ядра OScript.Web | ||
|
|
||
| назначение данного приложения простое - необходимо отлаживать низкоуровневое поведение ASP.NET, в это случае мы используем функциональность `dotnet watch` - режим онлайн перезагрузки приложения `.NET` при изменении файлов | ||
|
|
||
| ## Использование | ||
|
|
||
| > на данный момент использование подразумевает наличие у вас Visual Studio Code и Chocolatey и Windows | ||
| * установить `choco install dotnetcore-sdk` | ||
| * запустить Visual Studio Code | ||
| * запустить `debug.bat` | ||
|
|
||
| ## Поведение | ||
|
|
||
| * `dotnet` следит за изменениями исходников в формате `OScript` в текущем каталоге, а в каталоге исходников `OScript.Web` только за изменениями в модуле `package-loader.os` | ||
| * | ||
|
|
||
| ## Особенности использования Visual Studio Code | ||
|
|
||
| наиболее полно функциональность расскрывается с помощью трёх расширений `VSCode` | ||
|
|
||
| * `ms-dotnettools.csharp` - поддержка C#, ASP.NET, Razor и отладчика C# | ||
| * `evilbeaver.oscript-debug` - поддержка отладки OScript | ||
| * `1c-syntax.language-1c-bsl` - поддержка языка 1С и OScript | ||
|
|
||
| ## Структура каталогов | ||
|
|
||
| * `./` - `content-root` - то есть корень контента приложения | ||
| * `wwwroot` - статический файлы - вообще конечно, удобней впереди ставить `nginx`, но мы будем ставить `Caddy` - https://caddyserver.com/ - в том числе и для https ;-) | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "BackgroundJobs":{ | ||
| "StorageType":"Memory" | ||
| } | ||
| } |
Empty file.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| @echo off | ||
| set curDir=%CD% | ||
| dotnet watch --project ..\src\OneScript\OneScriptWeb.csproj watch run --framework netcoreapp3.1 --ContentRoot %curDir% |
Empty file.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| #Использовать "model" | ||
|
|
||
| Процедура ПриНачалеРаботыСистемы() | ||
|
|
||
| Сообщить("Старт отладочного приложения через DOTNET WATCH - То есть с перекомпиляцией при изменении"); | ||
| Сообщить("Фактически - медленно но верно позволяет кодить как на ОднОскрипте, так и на C#"); | ||
|
|
||
| ИспользоватьСтатическиеФайлы(); | ||
| ИспользоватьСессии(); | ||
| ИспользоватьМаршруты("ОпределениеМаршрутов"); | ||
|
|
||
| ИспользоватьФоновыеЗадания(); | ||
| НастроитьФоновыеЗадания(); | ||
|
|
||
| КонецПроцедуры | ||
|
|
||
| Процедура ОпределениеМаршрутов(КоллекцияМаршрутов) | ||
|
|
||
| КоллекцияМаршрутов.Добавить("ГлавнаяСтраница", "{controller=home}/{action=index}"); | ||
|
|
||
| КонецПроцедуры | ||
|
|
||
| Процедура НастроитьФоновыеЗадания() | ||
|
|
||
| Раписание = Новый РасписаниеФоновыхЗаданий(); | ||
| Раписание.КаждуюМинуту(); | ||
|
|
||
| РегламентныеЗадания.СоздатьПериодическоеЗаданиеПоРасписанию( | ||
| "СерверныеОповещения", "ОповеститьКлиентовОСтранном", Раписание | ||
| ); | ||
|
|
||
| КонецПроцедуры |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| Процедура ОповеститьКлиентовОСтранном() Экспорт | ||
aliczin marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| Сообщить("Я работаю по расписанию - постоянно, пока не отключишь | ||
| |или могу выполниться принудительно | ||
| |кстати ;-)", СтатусСообщения.Информация); | ||
|
|
||
| Сообщить("Я как процедура должна быть экспортной - иначе сервис фоновых заданий меня не найдет | ||
| |вместе с этим мой модуль должен быть доступен статично - без слова Новый - за это отвечает Package Loader"); | ||
|
|
||
| КонецПроцедуры | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| Процедура ПриЗагрузкеБиблиотеки(Путь, СтандартнаяОбработка, Отказ) | ||
|
|
||
| СтандартнаяОбработка = Ложь; | ||
| ОбработатьСтруктуруКаталоговПоСоглашению(Путь, СтандартнаяОбработка, Отказ); | ||
|
|
||
| КонецПроцедуры | ||
|
|
||
| Процедура ОбработатьСтруктуруКаталоговПоСоглашению(Путь, СтандартнаяОбработка, Отказ) | ||
|
|
||
| КаталогКлассов = Новый Файл(ОбъединитьПути(Путь, "classes")); | ||
| КаталогМодулей = Новый Файл(ОбъединитьПути(Путь, "modules")); | ||
| КаталогФоновых = Новый Файл(ОбъединитьПути(Путь, "jobs")); | ||
|
|
||
| Если КаталогКлассов.Существует() Тогда | ||
| Файлы = НайтиФайлы(КаталогКлассов.ПолноеИмя, "*.os"); | ||
| Для Каждого Файл Из Файлы Цикл | ||
| СтандартнаяОбработка = Ложь; | ||
| ДобавитьКласс(Файл.ПолноеИмя, Файл.ИмяБезРасширения); | ||
| Сообщить("Сработал загрузчик классов | ||
| |для модуля " + Файл.ИмяБезРасширения); | ||
| КонецЦикла; | ||
| КонецЕсли; | ||
|
|
||
| Если КаталогМодулей.Существует() Тогда | ||
| Файлы = НайтиФайлы(КаталогМодулей.ПолноеИмя, "*.os"); | ||
| Для Каждого Файл Из Файлы Цикл | ||
| СтандартнаяОбработка = Ложь; | ||
| ДобавитьМодуль(Файл.ПолноеИмя, Файл.ИмяБезРасширения); | ||
| Сообщить("Сработал загрузчик модулей | ||
| |для модуля " + Файл.ИмяБезРасширения); | ||
| КонецЦикла; | ||
| КонецЕсли; | ||
|
|
||
| Если КаталогФоновых.Существует() Тогда | ||
| Файлы = НайтиФайлы(КаталогФоновых.ПолноеИмя, "*.os"); | ||
| Для Каждого Файл Из Файлы Цикл | ||
| СтандартнаяОбработка = Ложь; | ||
| ДобавитьМодуль(Файл.ПолноеИмя, Файл.ИмяБезРасширения); | ||
| Сообщить("Сработал загрузчик модулей | ||
| |для модуля " + Файл.ИмяБезРасширения); | ||
| КонецЦикла; | ||
| КонецЕсли; | ||
|
|
||
| КонецПроцедуры |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,4 +75,9 @@ | |
| <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> | ||
| </Content> | ||
| </ItemGroup> | ||
| <ItemGroup> | ||
| <!-- extends watching group to include *.os files --> | ||
| <Watch Include="**\*.os" Exclude="oscript_modules\**\*" /> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Разве watch-перекомпиляция приводит к рестарту приложения? Если нет, то исходники 1скрипта не будут подхвачены приложением. |
||
| <Watch Include="..\..\debug-application\**\*.os" Exclude="oscript_modules\**\*" /> | ||
| </ItemGroup> | ||
| </Project> | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.