This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /var/www/dukelist/app/console dukelist:cleanup --env=prod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| app/console dukelist:migrate-legacy-database --env=prod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // HOPED-FOR BEHAVIOR: /cats says: Cats Home | |
| // ACTUAL BEHAVIOR: /cats says: Main Wildcard | |
| var express = require('express'); | |
| var app = express(); | |
| app.get('/', function(req, res) { | |
| res.send('Main Home'); | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // HOPED-FOR BEHAVIOR: both /cats.txt AND /cats/cats.txt say: Cats Static | |
| // ACTUAL BEHAVIOR: /cats.txt says Cats Static, but /cats/cats.txt says: Main Wildcard | |
| var express = require('express'); | |
| var fs = require('fs'); | |
| var app = express(); | |
| // Adding the static middleware at the beginning means it wins out over any routes present | |
| // (but only interferes if the file exists) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Render a view specific to this module | |
| function render(res, template, info) { | |
| return res.render(__dirname + '/views/' + template, info); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ./symfony scrape-legacy-site --series-only && ./symfony create-entities --import-posts | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| svn up && ./symfony apostrophe:deploy staging staging && ./symfony apostrophe:deploy production prod |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [mysqld] | |
| datadir=/var/lib/mysql | |
| socket=/var/lib/mysql/mysql.sock | |
| user=mysql | |
| # Use new password format for compatibility with newer PHP | |
| old_passwords=0 | |
| # Disabling symbolic-links is recommended to prevent assorted security risks; | |
| # to do so, uncomment this line: | |
| # symbolic-links=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| PunkAve\GPS\SchoolBundle\Entity\School: | |
| constraints: | |
| - \Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: psp_id | |
| - \Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity: name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Display a map with markers that link to other pages. Each marker must | |
| // have latitude, longitude and slug properties. There must also be a | |
| // a 'url' option which is used to build the links. The following | |
| // wildcards are replaced in the url: ID (with the id), SLUG (with the | |
| // slug property), PUBLISHED (with /year/month/day taken from published_at), | |
| // and START (with /year/month/day taken from start_date). In other words, | |
| // you can pass most array-hydrated Doctrine objects, including Apostrophe | |
| // blog posts and events, and easily generate links back to them. | |
| // The hover text title of the marker is taken from title if present, |