mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Upgrade Vagrant to bionic (was trusty)
This commit is contained in:
parent
4b69ab232f
commit
16205f9b82
3 changed files with 9 additions and 9 deletions
4
Vagrantfile
vendored
4
Vagrantfile
vendored
|
@ -1,12 +1,12 @@
|
|||
VAGRANTFILE_API_VERSION = '2'
|
||||
|
||||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
||||
config.vm.box = 'ubuntu/trusty64'
|
||||
config.vm.box = 'ubuntu/bionic64'
|
||||
config.vm.provision :shell, path: './vagrant/development.sh'
|
||||
config.vm.network :forwarded_port, guest: 9292, host: 9292
|
||||
|
||||
config.vm.provider :virtualbox do |vb|
|
||||
vb.customize ['modifyvm', :id, '--memory', '1536']
|
||||
vb.customize ['modifyvm', :id, '--memory', '2048']
|
||||
vb.name = 'neocities'
|
||||
end
|
||||
end
|
||||
|
|
|
@ -12,11 +12,11 @@ sudo su postgres -c "createuser -d vagrant"
|
|||
sudo su vagrant -c "createdb neocities"
|
||||
sudo su vagrant -c "createdb neocities_test"
|
||||
|
||||
sudo sh -c 'echo "local all postgres trust" > /etc/postgresql/9.3/main/pg_hba.conf'
|
||||
sudo sh -c 'echo "local all all trust" >> /etc/postgresql/9.3/main/pg_hba.conf'
|
||||
sudo sh -c 'echo "host all all 127.0.0.1/32 trust" >> /etc/postgresql/9.3/main/pg_hba.conf'
|
||||
sudo sh -c 'echo "host all all ::1/128 trust" >> /etc/postgresql/9.3/main/pg_hba.conf'
|
||||
sudo service postgresql restart
|
||||
sudo sh -c 'echo "local all postgres trust" > /etc/postgresql/10/main/pg_hba.conf'
|
||||
sudo sh -c 'echo "local all all trust" >> /etc/postgresql/10/main/pg_hba.conf'
|
||||
sudo sh -c 'echo "host all all 127.0.0.1/32 trust" >> /etc/postgresql/10/main/pg_hba.conf'
|
||||
sudo sh -c 'echo "host all all ::1/128 trust" >> /etc/postgresql/10/main/pg_hba.conf'
|
||||
sudo systemctl restart postgresql
|
||||
|
||||
# Create empty file for disposable email accounts
|
||||
DISPOSABLE_EMAIL_PATH=/vagrant/files/disposable_email_blacklist.conf
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
apt-get -y install python-software-properties
|
||||
apt-add-repository -y ppa:brightbox/ruby-ng
|
||||
apt-get -y update
|
||||
apt-get -y install ruby2.4 ruby2.4-dev
|
||||
gem install bundler --no-rdoc --no-ri
|
||||
apt-get -y install ruby2.6 ruby2.6-dev
|
||||
gem install bundler --no-document
|
||||
|
|
Loading…
Add table
Reference in a new issue