GithubHelp home page GithubHelp logo

knowledgehub's Introduction

Installation -

To install and run the project, follow these steps:

composer install
npm install
npm run dev
git rm --cached -r .idea/

How to add directory into gitignore:

.idea/
git rm --cached -r .idea/

How deploy code on server:

  1. uncomment for production the assets into resources/sass/_custom.scss
  2. comment the assets for local
  3. set the url into .env file
  4. replace the following in resources/js/router/router.js createWebHistory('/knowledgehub/') replace with createWebHistory('/')
APP_URL=https://webdev.pitb.gov.pk/knowledgehub
BASE_URL=https://webdev.pitb.gov.pk/knowledgehub
  1. make build
npm run prod
  1. add code into git
git add .
git commit -m "build-03-12-2023"
git push origin main
  1. now build deploy on server
git push prod main
  1. Note: be carefully server connect: if any issue cache and permission then connect tho server
ssh -p 8888 [email protected]
cd /var/www/vhosts/webdev/knowledgehub/
php artisan config:cache
sudo chmod 777 storage -Rf

On Unix-like (Linux, macOS, Git bash, etc.):

export NODE_OPTIONS=--openssl-legacy-provider

On Windows command prompt:

set NODE_OPTIONS=--openssl-legacy-provider

On PowerShell:

$env:NODE_OPTIONS = "--openssl-legacy-provider"

knowledgehub's People

Contributors

naveedshahzadofficial avatar zahidxee avatar talhafayyaz123 avatar

Watchers

 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.