tutor config render --extra-config ./indigo/config.yml ./indigo/theme "$(tutor config printroot)/env/build/openedx/themes/indigo"
tutor images build openedx
| before_script: | |
| - echo "Before script" | |
| - cd /var/www/html/{your-project-name} #your project path | |
| building: | |
| stage: build | |
| script: | |
| - git reset --hard | |
| - git pull origin develop | |
| - composer install | |
| - cp .env.example .env |
| How to set SSH key for multiple users? | |
| Switch to the user: | |
| su a | |
| Generate SSH keys: | |
| ssh-keygen | |
| {hit enter a few times} | |
| Create/edit authorized keys file: |
| Fress install server setup | |
| https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-18-04 | |
| Setting Up Firewall | |
| https://www.digitalocean.com/community/tutorials/how-to-set-up-a-firewall-with-ufw-on-ubuntu-18-04 | |
| install docker |
| $faker = \Faker\Factory::create(); | |
| $tomorrow = Carbon::createFromTimeStamp($faker->dateTimeBetween('now', '+01 days')->getTimestamp()); | |
| $end_time = Carbon::createFromFormat('Y-m-d H:i:s', $tomorrow)->addHours(3); |
| // routerlink-with-string-interpolation-in-vue | |
| <router-link :to='`/patients/detail/${props.row.id}`'> | |
| <i class="fa fa-eye" aria-hidden="true"></i> | |
| </router-link> |
| sudo service php7.2-fpm restart | |
| for display enabled php version in terminal by php -v. we need to set update cli version of php. | |
| use below command to update php cli version | |
| // change terminal (cli) version (7.2 to 7.1) | |
| sudo update-alternatives --set php /usr/bin/php7.1 |
Nginx
Install
sudo apt-get install nginxCMD
sudo systemctl status nginxsudo systemctl start nginxsudo systemctl restart nginxsudo nginx -t # Check nginx syntax.| function renderFullPage(html, preloadedState) { | |
| return ` | |
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Redux Universal Example</title> | |
| </head> | |
| <body> | |
| <div id="root">${html}</div> | |
| <script> |