#How To Add Bootstrap to a Ruby on Rails Application
https://www.digitalocean.com/community/tutorials/how-to-add-bootstrap-to-a-ruby-on-rails-application
File permission for pem file
chmod 400 {keyfile}.pem
Back with tar and today's date:
tar -zcvf "htdocs$(date '+%Y-%m-%d').tar.gz" htdocs
Rsync example \n
rsync -av — progress -e “ssh -i /home/mn/Documents/AWS/LightsailDefaultKey-us-east-1.pem” /home/mn/wordpress-5.4-0/apps/wordpress/htdocs/wp-content/themes/porto [email protected]:/home/bitnami/apps/wordpress/htdocs/wp-content/themes/
You can try to add annotation dependencies to pom.xml, so that they would be available for Spring:
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
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/sh | |
# Clean workspace | |
rm -rf * | |
rm .gitignore | |
# Upgrade Ruby | |
rvm install ruby-2.4.1 --default | |
# Start PostgreSQL and fix encoding conflict when creating database |
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 | |
# The script will fail at the first error encountered | |
set -e | |
PASS=`pwgen -s 40 1` | |
mysql -uroot <<MYSQL_SCRIPT | |
CREATE DATABASE $1; | |
CREATE USER '$1'@'localhost' IDENTIFIED BY '$PASS'; | |
GRANT ALL PRIVILEGES ON $1.* TO '$1'@'localhost'; |
OlderNewer