tutor config render --extra-config ./indigo/config.yml ./indigo/theme "$(tutor config printroot)/env/build/openedx/themes/indigo"
tutor images build openedx
| 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> |
| function isOperator(c) { | |
| return c == '+' || c == '-' || c == '*' || c == '/' || c == '^'; | |
| } | |
| function leftAssoc(c) { | |
| return c != '^'; | |
| } | |
| function priority(c) { | |
| if (c == '^') return 3; |
| delete_booking(code) { | |
| this.get_id_by_code(code, (id) => { | |
| this.$store.dispatch('delete_booking', id) | |
| .then(() => { | |
| this.$toasted.show('Deleted successfully'); | |
| this.status = false; | |
| }) | |
| .catch(() => this.$toasted.show('Something went wrong')); | |
| }); | |
| }, |