added vagrant configuration for running a friendica development instance
This commit is contained in:
parent
b8bf26ec1f
commit
c23de3a64e
3 changed files with 292 additions and 0 deletions
20
util/vagrant_provision.sh
Normal file
20
util/vagrant_provision.sh
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
#Script to setup the vagrant instance for running friendica
|
||||
#
|
||||
#DO NOT RUN on your physical machine as this won't be of any use
|
||||
#and f.e. deletes your /var/www/ folder!
|
||||
|
||||
#make the vagrant directory the docroot
|
||||
rm -rf /var/www/
|
||||
ln -fs /vagrant /var/www
|
||||
|
||||
#create the friendica database
|
||||
echo "create database friendica" | mysql -u root -proot
|
||||
|
||||
#create cronjob
|
||||
echo "*/10 * * * * cd /vagrant; /usr/bin/php include/poller.php" >> friendicacron
|
||||
crontab friendicacron
|
||||
rm friendicacron
|
||||
|
||||
#Optional: checkout addon repository
|
||||
#git clone https://github.com/friendica/friendica-addons.git /vagrant/addon
|
||||
Loading…
Add table
Add a link
Reference in a new issue