-
Get the deploy URL from Forge (or other PaaS)
-
Create a dotfile in the root of your project, like
.forge
, and place the URL in that file -
Add the file from step 2 to your
.gitignore
-
Add the following to your
.zshrc
or.bashrc
, etc.function deploy() { xargs curl -I < .forge & }
-
source ~/.zshrc
-
Now run
deploy
whenever you want to deploy your project
Last active
June 12, 2016 19:40
-
-
Save etelford/de51d1a895a8894e2c2bc49e794b15c1 to your computer and use it in GitHub Desktop.
Miscellaneous
This file contains 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
# Install apache2-utils | |
sudo apt-get install apache2-utils | |
# Create a basic auth user | |
sudo htpasswd -c /etc/nginx/.htpasswd myuser | |
# In one of your vhosts, add the following inside the location block: | |
auth_basic "Restricted"; | |
auth_basic_user_file /etc/nginx/.htpasswd; | |
# Reload nginx | |
nginx -s reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment