Giter VIP home page Giter VIP logo

docker-laravel-nuxtjs-deploy-example's Introduction

TEMPLATE DOCKER FOR LARAVEL & NUXTJS

This example create a environment facilitate you can run your project in server.

About laravel it just create environment not exec any command to help you deploy automatically.

About nuxtjs it auto generate and start app. Then when update nuxtjs src you need rebuild docker image.

How to use?

  1. You need to clone example files.
    cp ./.env.example ./.env
    cp ./docker-compose.example.yml ./docker-compose.yml
    cp -r ./nginx/ssl-example ./nginx/ssl

Then change them to your tailored configs. You can ignore update ssl files.

  1. Clone your laravel and nuxtjs.

Clone it accordingly to ./laravel/src and ./nuxtjs/src

  1. Config nuxtjs

Normally you would set private laravel url (local url to laravel) to http://nginx:8000

  1. Run your project
    docker-compose up -d
  1. Instantiate laravel
    docker-compose exec laravel composer install --ignore-platform-reqs
    docker-compose exec laravel php artisan key:generate -n
    docker-compose exec laravel php artisan optimize
    docker-compose exec laravel php artisan migrate --seed
    docker-compose exec laravel php artisan storage:link

How to update code?

  1. Update laravel, then we just exec needed.
  2. Update Nuxtjs, then we need just below command.
    docker-compose down
    docker-compose build --no-cache nuxtjs
    docker-compose up -d

docker-laravel-nuxtjs-deploy-example's People

Contributors

dinwwwh avatar

Stargazers

 avatar

Watchers

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