diff --git a/.github/workflows/full-site-build.yml b/.github/workflows/full-site-build.yml index 2da6bc64..0acee142 100644 --- a/.github/workflows/full-site-build.yml +++ b/.github/workflows/full-site-build.yml @@ -33,7 +33,16 @@ jobs: cp -rfp ./web-twain-docs/* ./DWTDoc/ cd Docs-Template-Repo-Preview && git pull && cd .. && cp -rfp ./Docs-Template-Repo-Preview/* ./DWTDoc/ cd DWTDoc && bundle exec jekyll build - python3 /home/ubuntu/ftp.py /home/ubuntu/DWTDoc/_site/ ./www.dynamsoft.com/web-twain/docs/ prod + + - name: Sync files + uses: SamKirkland/FTP-Deploy-Action@4.3.0 + with: + server: ${{ secrets.FTP_DYNAMSOFT_LOCAL_SERVER }} + username: ${{ secrets.FTP_DYNAMSOFT_LOCAL_USER }} + password: ${{ secrets.FTP_DYNAMSOFT_LOCAL_PASSWORD }} + port: 21 + local-dir: /home/ubuntu/DWTDoc/_site/ + server-dir: /www.dynamsoft.com/web-twain/docs/ Build-Preview: if: ${{ github.ref == 'refs/heads/preview' }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fec9bb33..08be30cd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,16 @@ jobs: cd web-twain-docs && git pull && cd .. && cp -rfp ./web-twain-docs/* ./DWTDoc/ cd Docs-Template-Repo-Preview && git pull && cd .. && cp -rfp ./Docs-Template-Repo-Preview/* ./DWTDoc/ cd DWTDoc && bundle exec jekyll build --incremental - python3 /home/ubuntu/ftp.py /home/ubuntu/DWTDoc/_site/ ./www.dynamsoft.com/web-twain/docs/ prod + + - name: Sync files + uses: SamKirkland/FTP-Deploy-Action@4.3.0 + with: + server: ${{ secrets.FTP_DYNAMSOFT_LOCAL_SERVER }} + username: ${{ secrets.FTP_DYNAMSOFT_LOCAL_USER }} + password: ${{ secrets.FTP_DYNAMSOFT_LOCAL_PASSWORD }} + port: 21 + local-dir: /home/ubuntu/DWTDoc/_site/ + server-dir: /www.dynamsoft.com/web-twain/docs/ Build-Preview: if: ${{ github.ref == 'refs/heads/preview' }} diff --git a/faq/general-troubleshooting-steps.md b/faq/general-troubleshooting-steps.md index 0febb314..34fc9f48 100644 --- a/faq/general-troubleshooting-steps.md +++ b/faq/general-troubleshooting-steps.md @@ -25,8 +25,9 @@ permalink: /faq/general-troubleshooting-steps.html - Linux, `/opt/dynamsoft/DynamsoftService/log` 2. Set the log level - Option A - Single client machine troubleshooting - go to the application with Dynamic Web TWAIN integrated, press F12 to open the development tools, switch to "console" tab and enter the command "DWObject.LogLevel = 1" to enable the debugger mode. - Option B - For all client machines (application wide) - set [ `LogLevel` ]({{site.info}}api/WebTwain_Util.html#loglevel) to 1 in your code. This property should be set as soon as the `WebTwain` instance is created. For example, in the event `Dynamsoft_OnReady` + - Option A - (Only recommended for v18.0+) For only one client machine, add the line `LogLevel=14` to `DSConfiguration.ini` on that specific machine. To find the `DSConfiguration.ini` file, please return to the previous directory from the log directory. + - Option B - Single client machine troubleshooting - go to the application with Dynamic Web TWAIN integrated, press F12 to open the development tools, switch to "console" tab and enter the command `DWObject.LogLevel = 1` to enable the debugger mode. + - Option C - For all client machines (application wide) - set [ `LogLevel` ]({{site.info}}api/WebTwain_Util.html#loglevel) to 1 in your code. This property should be set as soon as the `WebTwain` instance is created. For example, in the event `Dynamsoft_OnReady` ```javascript function Dynamsoft_OnReady() { DWObject = Dynamsoft.DWT.GetWebTwain("dwtcontrolContainer");