medal-data-setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
medal-data-setup [2021/12/17 15:46] – arnaud_poletto | medal-data-setup [2022/01/10 14:55] (current) – removed arnaud_poletto | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== medAL-data Setup ====== | ||
- | ==== Purpose and Scope ==== | ||
- | |||
- | This page lists instructions to setup a medAL-// | ||
- | |||
- | |||
- | |||
- | |||
- | ==== Material ==== | ||
- | |||
- | You will need the following material: | ||
- | |||
- | * A Linux server with the following minimal requirements: | ||
- | * 8GB RAM | ||
- | * 300GB disk capacity | ||
- | * Operating System: Ubuntu >= 18.04 | ||
- | * A controlling workstation (Linux / MacOS / Windows) with the following installed: | ||
- | * git version control software (see https:// | ||
- | * bash terminal (for windows see : https:// | ||
- | * A domain Name (In the installation we will use the name // | ||
- | |||
- | |||
- | |||
- | |||
- | ===== Manual Installation ===== | ||
- | |||
- | ==== Environment Setup ==== | ||
- | |||
- | Firstly, open up two terminals **[t_local]** and **[t_remote]** on the controlling workstation, | ||
- | < | ||
- | |||
- | |||
- | |||
- | |||
- | === Dokku Installation on Remote Server === | ||
- | |||
- | To setup the dokku installation, | ||
- | |||
- | - **[t_remote]** Install dokku with the following commands: \\ < | ||
- | wget https:// | ||
- | sudo DOKKU_TAG=v0.24.10 bash bootstrap.sh | ||
- | </ | ||
- | |||
- | - **[t_local]** On the local workstation, | ||
- | | ||
- | cat ~/ | ||
- | </ | ||
- | ssh-keygen -t rsa | ||
- | </ | ||
- | | ||
- | |||
- | |||
- | |||
- | |||
- | ==== Application Setup ==== | ||
- | |||
- | === Application Deployment === | ||
- | |||
- | Now, deploy your application by following this procedure: | ||
- | |||
- | - **[t_remote]** Run the following commands to create and configure the dokku app for the medAL-// | ||
- | # Create the App | ||
- | dokku apps:create medal-data | ||
- | # Install the postgres DB plugin | ||
- | sudo dokku plugin: | ||
- | # Create Database | ||
- | dokku postgres: | ||
- | # Link the App to the database | ||
- | dokku postgres: | ||
- | # Set Config variables for Laravel | ||
- | dokku config:set medal-data DB_CONNECTION=postgres | ||
- | # Add the PHP buildpack to the apps config | ||
- | dokku config:set medal-data BUILDPACK_URL=" | ||
- | # Configure the storage folder of the server | ||
- | mkdir -p / | ||
- | mkdir -p / | ||
- | mkdir -p / | ||
- | mkdir -p / | ||
- | mkdir -p / | ||
- | # give rights to herokuish | ||
- | chown -R 32767:32767 / | ||
- | dokku storage: | ||
- | # set the scale of the application | ||
- | dokku ps:scale medal-data web=1 worker=1 | ||
- | </ | ||
- | - **[t_local]** On the local workstation, | ||
- | git clone https:// | ||
- | cd liwi-main-data </ | ||
- | - **[t_local]** Do a copy the '' | ||
- | - **[t_remote]** On the remote server, paste the content at the end of the following file: ''/ | ||
- | - **[t_local]** Link and deploy the server with the following git commands (replace // | ||
- | git remote add dokku dokku@example.com: | ||
- | git push dokku master | ||
- | </ | ||
- | - **[t_remote]** Back on the remote server, run the following command to set the '' | ||
- | dokku config:set medal-data APP_KEY=$(dokku run medal-data php artisan --no-ansi key: | ||
- | </ | ||
- | - **[t_remote]** Also run the following command to make sure that Laravel' | ||
- | dokku run medal-data php artisan passport: | ||
- | </ | ||
- | - **[t_remote]** Finally, migrate and seed the database using: \\ < | ||
- | dokku run medal-data php artisan migrate: | ||
- | </ | ||
- | - **[t_remote]** medAL-// | ||
- | dokku run medal-data php artisan 2fa: | ||
- | </ |
medal-data-setup.1639752404.txt.gz · Last modified: 2021/12/17 15:46 by arnaud_poletto