-
Allow the application to be packaged as a
warIn the
pom.xml, changepackagingfromjartowarChange your class with a main method so that it extends
SpringBootServletInitializer, and add the following method:
-
The following code block is syntactically correct, but will not produce the desired output. What can you change to fix this?
function sayHello() { console.log('Hello, ' + name + '!'); } sayHello("Zach");
// desired output: "Hello, Zach!"
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
| #!/bin/bash | |
| # This script will replace the ansible parts of the codeup vagrant setup | |
| # | |
| # bash -c "$(curl https://gist.githubusercontent.com/zgulde/2ba2d5ed67fcb58dca35305bc8be8b76/raw/2f451faba1913535c724b586598fafd62254e2cc/php-update.sh)" | |
| set -e | |
| if [[ ! -d ~/vagrant-lamp ]]; then | |
| echo "~/vagrant-lamp directory not found!" |
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
| <?php | |
| /* | |
| * colorize and individual color functions adapted from | |
| * https://kpumuk.info/ruby-on-rails/colorizing-console-ruby-script-output/ | |
| * see also http://misc.flogisoft.com/bash/tip_colors_and_formatting | |
| */ | |
| function colorize($text, $code, $bold) { | |
| $preamble = "\033"; |
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
| <?php | |
| class ConsoleLogger { | |
| private $bold = true; | |
| public function __construct($bold = true) { | |
| $this->bold = $bold; | |
| } | |
| public function info($msg) { |
In general:
- Create a branch with your name
- Do you work in this branch
- Before switching branches, pulling, or pushing, make sure you have committed all changes
- Checkout the information on working with git in teams in the curriculum