-
Notifications
You must be signed in to change notification settings - Fork 7
Upload application installation
Translation: Lilian Calò, 04-Mar-2024 Update: Development team, 24-Set-2024
Back to Table of Contents
- It is recommended that you create a new user group and a specific user for the applications. Do not use the root user to avoid permission problems.
- Create a (new) folder called upload.
mkdir upload
-
Access the link https://github.com/scieloorg/scms-upload/releases to check the latest release. E.g.: v2.3.6
-
Open a terminal in the newly created folder and download the application upload from GitHub.
wget https://github.com/scieloorg/scms-upload/archive/refs/tags/v2.3.6.zip
- Unzip the upload_latest.zip file
unzip v2.3.6.zip
-
After unzipping the v2.3.6.zip file, a folder called scms-upload-v2.3.6 will be created
-
Rename scms-upload-v2.3.6 to upload
mv scms-upload-2.3.6 upload
- Enter the upload folder that was created after the clone:
cd upload
- Make sure that the folder has the appropriate group and user and guarantee read, write, and execute permissions for the group and user.
sudo groupadd group
sudo chown -R user:group .
sudo chmod 775 -R .
Create the file .envs/.production/.django, using as a model https://github.com/scieloorg/scms-upload/blob/main/.envs/.production/.django, and completing the variables in the EMAIL section
Create the file .envs/.production/.postgres, using as a model https://github.com/scieloorg/scms-upload/blob/main/.envs/.production/.postgres
Inside the upload folder, execute the following command to start the application using Docker and docker-compose, this command will upload the Upload application services:
docker login
make build compose=production.yml
Create the tables in the databases
make django_migrate compose=production.yml
Create the administrator user in the database:
make django_createsuperuser compose=production.yml
make up compose=production.yml
Back to Table of Contents