aws-team:projects:aws-and-ci-cd-sample-project
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
aws-team:projects:aws-and-ci-cd-sample-project [2020/07/12 02:44] – created hajir | aws-team:projects:aws-and-ci-cd-sample-project [Unknown date] (current) – external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 19: | Line 19: | ||
// | // | ||
- | Nginx | + | * Nginx |
- | PHP >= 7.0 | + | |
- | MySQL >= 5.7 | + | |
- | NPM | + | |
- | Supervisor | + | |
// | // | ||
+ | |||
1. Installed php modules must be: | 1. Installed php modules must be: | ||
< | < | ||
Line 31: | Line 33: | ||
2. Create a database and add a guideline of how to get DB credentials | 2. Create a database and add a guideline of how to get DB credentials | ||
+ | |||
3. Import a SQL file into the created DB | 3. Import a SQL file into the created DB | ||
+ | |||
4. In DB change the id to 3 in users table where the id is 1 | 4. In DB change the id to 3 in users table where the id is 1 | ||
+ | |||
5. Copy env variables file called .env from S3 or local storage. For the CI/CD sample project, please add secrets to GitHub for .env file | 5. Copy env variables file called .env from S3 or local storage. For the CI/CD sample project, please add secrets to GitHub for .env file | ||
+ | |||
6. Run (composer is not pre-installed): | 6. Run (composer is not pre-installed): | ||
< | < | ||
- | code@terminal: | + | code@terminal: |
< | < | ||
Line 44: | Line 50: | ||
< | < | ||
code@terminal: | code@terminal: | ||
+ | |||
code@terminal: | code@terminal: | ||
+ | |||
code@terminal: | code@terminal: | ||
+ | |||
code@terminal: | code@terminal: | ||
+ | |||
code@terminal: | code@terminal: | ||
+ | |||
code@terminal: | code@terminal: | ||
< | < | ||
Line 55: | Line 66: | ||
< | < | ||
code@terminal: | code@terminal: | ||
+ | |||
code@terminal: | code@terminal: | ||
< | < | ||
Line 61: | Line 73: | ||
< | < | ||
- | [program: | + | [program: |
- | process_name=%(program_name)s_%(process_num)02d | + | |
- | command=php / | + | process_name=%(program_name)s_%(process_num)02d |
- | autostart=true | + | |
- | autorestart=true | + | command=php / |
- | user=root | + | |
- | numprocs=4 | + | autostart=true |
- | redirect_stderr=true | + | |
- | stdout_logfile=/ | + | autorestart=true |
+ | |||
+ | user=root | ||
+ | |||
+ | numprocs=4 | ||
+ | |||
+ | redirect_stderr=true | ||
+ | |||
+ | stdout_logfile=/ | ||
< | < | ||
Line 75: | Line 96: | ||
< | < | ||
- | * * * * * php /var/www/medvoice/artisan schedule: | + | * * * * * php /var/www/PATH_TO_PROJECT/artisan schedule: |
< | < | ||
11. Setup SSL. We recommend AWS certificates instead of Let’s encrypt. | 11. Setup SSL. We recommend AWS certificates instead of Let’s encrypt. | ||
+ | |||
We also expect a guideline, written in markdown format, to setup and config our servers. | We also expect a guideline, written in markdown format, to setup and config our servers. | ||
aws-team/projects/aws-and-ci-cd-sample-project.1594543463.txt.gz · Last modified: 2020/07/12 01:44 (external edit)