mhulse / wp-stub Goto Github PK
View Code? Open in Web Editor NEWBoilerplate code used to kick-start WordPress projects.
License: Apache License 2.0
Boilerplate code used to kick-start WordPress projects.
License: Apache License 2.0
We don't want uploads in version control.
#!/bin/bash
echo "Database Name: "
read -e dbname
echo "Database User: "
read -e dbuser
echo "Database Password: "
read -s dbpass
echo "run install? (y/n)"
read -e run
if [ "$run" == n ] ; then
exit
else
#download wordpress
curl -O http://wordpress.org/latest.ta...
#unzip wordpress
tar -zxvf latest.tar.gz
#change dir to wordpress
cd wordpress
#copy file to parent dir
cp -rf . ..
#move back to parent dir
cd ..
#remove files from wordpress folder
rm -R wordpress
#create wp config
cp wp-config-sample.php wp-config.php
#set database details with perl find and replace
perl -pi -e "s/database_name_here/$dbname/g" wp-config.php
perl -pi -e "s/username_here/$dbuser/g" wp-config.php
perl -pi -e "s/password_here/$dbpass/g" wp-config.php
#create uploads folder and set permissions
mkdir wp-content/uploads
chmod 777 wp-content/uploads
#remove zip file
rm latest.tar.gz
#remove bash script
#rm wp.sh
fi
Edit the above and make work for this repo. Use one curl command to install.
From:
http://code.tutsplus.com/articles/download-and-install-wordpress-via-the-shell-over-ssh--wp-24403
And then document.
To wp-kickstart?
Might make more sense.
Kinda a cool way to push assets and other code to server without using git:
$ git archive --format=tar [email protected]:USER/REPO.git master | gzip -9c | ssh [email protected] "tar --directory=/var/www/html/VHOSTROOTDIR -xvzf -"
Include all that info in this repo.
Don't forget to add:
<IfModule mime_module>
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
</IfModule>
โฆ to httpd.conf
. Though, maybe newer versions of XAMPP have this fixed? Kinda weird it's not in etc/mime.types
?
The new README instructions account for this using wget
.
For kickstarting new projects.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.