-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get your osu-web works locally (without VPS) #6
Comments
Preparingsudo add-apt-repository -y ppa:ondrej/php
sudo apt update
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
sudo apt install -y php7.2 nginx mysql-server nodejs wget git php7.2-curl php7.2-fpm php7.2-gd php7.2-intl php7.2-json php7.2-mbstring php7.2-mcrypt php7.2-mysql php7.2-xml php7.2-zip mcrypt phpunit Enter and remember your MySQL root password. |
GitClone repo and config git clone https://github.com/ppy/osu-web.git
cd osu-web
git config --local core.filemode false |
NodejsInstall yarn
|
Nginxsudo rm /etc/nginx/sites-enabled/default
sudo cp docker/nginx/nginx-osu-next /etc/nginx/sites-enabled/nginx-osu-next
sudo ln /etc/nginx/sites-enabled/nginx-osu-next /etc/nginx/sites-available/nginx-osu-next
sudo nano /etc/nginx/sites-enabled/nginx-osu-next Find the line sudo service nginx restart
chmod 755 -R public/
mkdir -p public/uploads
chmod 777 public/uploads |
MySQL
sudo service mysql restart
bin/db_setup.sh
git checkout -- bin/db_setup.sh cp .env.example .env
nano .env Change DB connection settings |
Done
Syncgit pull origin master
./build.sh |
Cleanfinding suitable way... |
我是不是应该出一个适用于 Windows 的套件。 |
【当然我们更推荐 Docker 工作流(】 |
本文适用于非root的Linux用户部署osu-web( @kj415j45 测试通过),也适用于Ubuntu on Win10(bash)( @MegaApplePi 测试通过)
These steps are for not-root Linux user deploy their own osu-web (tested by @kj415j45 ). works on Ubuntu on Win10(bash) too (tested by @MegaApplePi ).
The text was updated successfully, but these errors were encountered: