femslash-city/SETUP.md
Agnes 596fd85f2f
Some checks failed
CI / test (push) Has been cancelled
accidentally leaked secrets so had to nuke shit fuck
2026-08-19 17:29:54 -04:00

1.3 KiB

Neocities Local Development Setup

On Windows (host machine)

  1. Install Ruby

    winget install RubyInstallerTeam.Ruby.4.0
    
  2. Add Ruby to your PATH (run in PowerShell)

    $rubyPath = "C:\Ruby40-x64\bin"
    $oldPath = [Environment]::GetEnvironmentVariable("Path", "User")
    if ($oldPath -notlike "*$rubyPath*") {
        [Environment]::SetEnvironmentVariable("Path", $oldPath + ";$rubyPath", "User")
    }
    

    Then restart your terminal for the change to take effect.

  3. Clone the repository

    git clone https://github.com/bald-cap/neocities.git
    cd neocities
    
  4. Fix line endings on Vagrant scripts

    dos2unix vagrant/common.sh vagrant/database.sh vagrant/development.sh vagrant/fs-primary.sh vagrant/redis.sh vagrant/ruby.sh vagrant/webapp.sh
    
  5. Install Vagrant

    winget install --id Hashicorp.Vagrant
    
  6. Copy config file

    cp config.yml.template config.yml
    
  7. Start and provision the VM

    vagrant up --provision
    
  8. SSH into the VM

    vagrant ssh
    

Inside the VM

  1. Add the rackup gem

    sudo bundle add rackup
    
  2. Install gems

    sudo bundle install
    
  3. Start the server

    bundle exec rackup -o 0.0.0.0
    

The site will be available at http://127.0.0.1:9292