Git Product home page Git Product logo

swarocketchatproject's Introduction

SWARocketChatProject

Unser SWA Project

  • 1 Github Projekt Klonen

  • 2 MySQL Installieren und in der Workbench durch Data Import mit dem DBCreateInSingle.sql script die DB erstellen. (Github root Verzeichnis)

  • 3 Projekt in Visual Studio Öffnen (momentan Veröffentlichung/Publish nur unter Windows möglich)

  • 4 Connection String in appsettings.json anpassen
    (Default: server=10.0.2.2;port=3306;Database=ProjectRocketChat;user=root;password=root)
    Folgende Schritte zum veröffentlichen des Projekts (um lokal darauf zuzugreifen Projekt ausführen):

  • 5 Rechtsklick auf das Projekt (Nicht die Solution) SWARocketChat in Visual Studio -> Publish ->
    (Reiter) Publish -> Configure

    -> (Reiter) Connection:

    Publish method: File System
    Target location: "Ihr Ausgabe Pfad"

    -> (Reiter) Settings:

    Configuration: Release
    Target Framework: netcoreapp2.0
    Deployment Mode: Framework-Dependent
    Target Runtime: "Benötigte auswählen"
    Databases: DefaultConnection nicht benutzen
    Entity Framework Migrations: nicht benutzen
    Save

  • 6 (Button) Publish

  • 7 Ordner auf System(Linux) Übertragen

    Linux:

    -> Linux Version auswählen
    -> Befehle ausführen

    • 8 (Ohne Server) dotnet <app_assembly>.dll (in unserem Fall SWARocketchat.dll)
    • 8 Apache Alternative

    Alle weiteren Schritte für nginx Server

    • 9 sudo apt-get install nginx
    • 10 sudo service nginx start
    • 11 /etc/nginx/sites-available/default öffnen mit Text Editor
    • 12 kompletten Inhalt mit folgendem Ersetzen:
    server {  
        listen 80;  
        server_name   SWARocketChat.com *. SWARocketChat.com;  
        location / {  
            proxy_pass http://localhost:5000;  
            proxy_http_version 1.1;  
            proxy_set_header   Upgrade $http_upgrade;  
            proxy_set_header   Connection keep-alive;  
            proxy_set_header   Host $http_host;  
            proxy_cache_bypass $http_upgrade;  
        }  
    }  
    

    Kestrel Configuration

    • 13 sudo gedit /etc/systemd/system/kestrel-SWARocketchat.service
    • 14 In dieser Datei folgendes einfügen:
    [Service]
    WorkingDirectory=/var/LinuxPublish/SWARocketchat
    ExecStart=/usr/bin/dotnet /var/LinuxPublish/SWARocketchat.dll
    Restart=always
    RestartSec=10 # Restart service after 10 seconds if dotnet service crashes
    SyslogIdentifier=dotnet-example
    User=root
    Environment=ASPNETCORE_ENVIRONMENT=Production
    Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false
    
    [Install]
    WantedBy=multi-user.target
    
    • 15 Pfade für WorkingDirectory und ExecStart nach dotnet Kommando anpassen (/var/LinuxPublish/SWARocketchat.dll)
    • 16 systemctl enable kestrel-SWARocketchat.service
    • 17 systemctl start kestrel-SWARocketchat.service
    • 18 systemctl status kestrel-SWARocketchat.service

    Server sollte nun immer auf http://localhost:5000 laufen

    https://github.com/GerryWildermuth/SWARocketChatProject/blob/master/Images/Sample0.png https://github.com/GerryWildermuth/SWARocketChatProject/blob/master/Images/Sample1.png https://github.com/GerryWildermuth/SWARocketChatProject/blob/master/Images/Sample2.png https://github.com/GerryWildermuth/SWARocketChatProject/blob/master/Images/Sample3.png

swarocketchatproject's People

Contributors

rasalo avatar gerrywildermuth avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.