Code Monkey home page Code Monkey logo

royelnewyork-ec's Introduction

royelnewyork-ec

PHP version need: php 7.4

yarn dev:shop-rest

yarn dev:admin-rest

// add IP if add server ip on next.config.js file

// create .babelrc file on shop and other nextjs project directory and put in .babelrc file: { "presets": ["next/babel"] }

yarn build:shop-rest

// build:rest for production

// for laravel

composer install

PHP plugins you must need

simplexml PHP's dom extension mbstring GD Library

php artisan marvel:install

if change APP_URL=http://localhost:8000 in laravel env file then need to storage:link and run command again sudo rm storage // from public folder

php artisan storage:link

php artisan serve

sudo chown -R www-data:www-data public/storage

sudo chown -R $USER:www-data public/storage

sudo chmod -R 777 public/storage

sudo chmod -R 777 bootstrap/cache

//admin /// SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'en' for key 'settings_language_unique' (SQL: insert into settings Then in at settings table in language column have unique key. so need to chnage language or pass different language name

under .next folder cache folder should be delete before push to git

if not running frontend alwyes check pm2 status

How to rebuild shop? When you upload the code to the server as a production, NextJS fetch its code from the build file. So after deployed, when you update or change code on scripts, the updated scripts don't work at admin end until you rebuild the project again. NextJs works this way.

Now there are two ways you can follow to rebuild shop,

If your server has more than 2+ CPU core and 6GB+ of memory, then you can directly edit code at your server then rebuild the project from the server directly using this command,

For shop,

Go to /var/www/pickbazar-laravel/shop

yarn build After completing the build, restart the PM2 process using this command,

pm2 restart 'all'

But suppose your server doesn't have that processing power, and you try to build your scripts directly from the server. In that case, your server will be shut down during the build, and you've to restart the server.

// For SSL sudo apt install certbot python3-certbot-nginx

sudo certbot --nginx -d YOUR_DOMAIN

royelnewyork-ec's People

Contributors

abusufian12 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.