Skip to content

InsaneWookie/rivl2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting started

Docker (Custom)

  • Make a copy of .env.example and rename it to .env

    • Set the APP_KEY
      php artisan key:generate --show
  • Create a .env.mysql file

    • add MYSQL_ROOT_PASSWORD=<root user password>
  • Set database params in .env

    • DB_HOST=db
    • DB_PORT=3306
    • DB_DATABASE=rivl2
    • DB_USERNAME=root
    • DB_PASSWORD=<same as MYSQL_ROOT_PASSWORD>

docker-composer build
docker-composer up -d

Shell into container
docker-composer exec app sh

Install dependencies
composer install
npm install

Database

Create docker-compose exec db mysql -p -e 'create database rivl2'

Migrate docker-compose exec app php artisan migrate

#Getting started alternatives

Homstead

  • Get the Homestead vagrant up and running: https://laravel.com/docs/5.5/homestead
  • Check out this project
  • Update the vagrant file to map the checked out directory
  • Make a copy of .env.example and rename it to .env
    • Set the APP_KEY and DB_DATABASE
  • TODO: create database (for now restore from backup)
  • run composer install
  • run npm install this will mostly complete
  • run npm install --no-bin-links (there is some issue with the vagrant shared folder and symlinks)
  • update host file, add something like 192.168.10.10 rivl2
  • npm run watch-poll to recompile frontend on save

Docker (Laradock)

  • Enable debugging, edit laradock .env file (WORKSPACE_INSTALL_XDEBUG=true)

docker-compose build mysql nginx workspace

Composer install

docker run --rm --interactive --tty --volume $PWD:/app --user $(id -u):$(id -g) composer install

NPM install

docker run --rm --interactive --tty --volume $PWD:/app -w /app --user $(id -u):$(id -g) node npm install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages