Skip to content

Commit 02f0563

Browse files
committed
Update in gitfiles
1 parent e7067e5 commit 02f0563

2 files changed

Lines changed: 31 additions & 25 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
__pycache__
66
db.sqlite3
77
media
8-
sshkeys/
8+
sshkeys/*
99
# Backup files #
1010
*.bak
1111

readme.md

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,38 +16,23 @@
1616
- [Secret Key](#secretkey)
1717
- [Configure your .env](#configure-env)
1818
- [DataBase](#database)
19+
- [FAQ](#faq)
1920
- [Version](#version)
2021
- [Videos](#videos)
2122

2223

2324
## Setup
2425

25-
#### You can use Docker Image
2626

27-
```
28-
docker pull xandouglas/switchsetup:latest
29-
docker run -p 8000:8000 --name switchsetup -d xandouglas/switchsetup:latest
30-
If dont work:
31-
sudo docker run -p 8000:8000 xandouglas/switchsetup:latest
32-
```
33-
34-
After creating the image, use for login:
35-
```
36-
Username: admin
37-
Password: 123
38-
```
39-
40-
Once inside the system, you have the capability to manage your users and their credentials effectively.
41-
42-
#### You can use Git Clone
27+
#### Git Clone
4328

4429
To set up the project locally, please follow these steps:
4530

46-
1. Clone the repository: `git clone https://github.com/AleDouglas/SwitchSetup.git`
47-
2. Install the for ansible and Django in requirements.txt .
48-
3. You need generate your own [Secret Key](#SecretKey).
49-
4. [Configure your .env](#configure-.env)
50-
5. You can run it in [your terminal or dockerfile](#run-switchsetup)
31+
1. Clone the repository: `git clone https://github.com/AleDouglas/SwitchSetup.git` .
32+
2. Install the packages from the requirements.txt file in your Virtual Environment or use the Dockerfile .
33+
3. You need generate your own [Secret Key](#SecretKey) .
34+
4. [Configure your .env](#configure-.env) .
35+
5. You can run it in [your terminal or dockerfile](#run-switchsetup) .
5136

5237

5338
## SecretKey
@@ -72,6 +57,12 @@ DEBUG=True
7257

7358
## Run SwitchSetup
7459

60+
Use for login:
61+
```
62+
Username: admin
63+
Password: 123
64+
```
65+
7566
#### Terminal Local:
7667

7768
```
@@ -86,8 +77,8 @@ python manage.py runserver
8677
cd WebApi
8778
python manage.py migrate
8879
cd ..
89-
docker build -t image_name
90-
docker run -p 8000:8000 image_name
80+
docker build -t image_name .
81+
docker run -p 8000:8000 imagename
9182
9283
```
9384
## Database
@@ -107,11 +98,26 @@ python manage.py migrate
10798

10899
After this, a new admin user with the username "admin" and password "123" is automatically created.
109100

101+
102+
I recommend using MySQL or PostgreSQL to avoid the use of a physical database within the documents. Simply follow the Django reference for the necessary modifications.
103+
104+
105+
## FAQ
106+
107+
108+
##### Problems for login authentication in Ansible-Docker
109+
We have identified an issue regarding Ansible authentication. This might be caused by the required keys. Simply copy the keys from the ~/.ssh/ file to the 'sshkeys' folder within the project. We will work on resolving this problem in the upcoming updates.
110+
111+
112+
110113
## Version
111114

112115

113116
| Version | | Date |
114117
|----------|:-------------:|------:|
118+
| 1.5.2 | Resolved logging issue in certain system tasks | 18/08/2023
119+
| 1.5.1 | Added ansible execution information control system | 18/08/2023 |
120+
| 1.5 | Possible solution for connecting via docker-ansible and adding level of information when running ansible | 17/08/2023 |
115121
| 1.4 | Fixed ansible conection | 17/07/2023 |
116122
| 1.3 | SSH Save Credentials | 16/07/2023 |
117123
| 1.2 | User Options | 14/07/2023 |

0 commit comments

Comments
 (0)