You are reading content from Scuttlebutt
@Hendrik Peter %xx82eO9LxV7yZD+IpxL3/KhPNPiVqKem3LpS5+S0pS8=.sha256
Re: %VoYMmKYL1
  1. Could install a raspberry pi with a fairly easy user and password.
  2. then create a "Sites" folder in the home directory
  3. sudo apt-get install nginx
  4. change /etc/nginx/sites-enabled/default to:
server {
    listen 80 default_server;
    listen [::]:80 default_server;
        server_name _;

    location / {
                root /home/your-pi-user/Sites;
        index index.html;
                autoindex on;
    }

}

Then have them put their sites as their own "name" in that folder using visual studio's ssh enabled file tree.

That's all a bit hard and probably a bad idea. Plus actually dragging sites directly to servers rarely ever happens in real life situations. So here are some "better" options that I commonly use:

  • Have them create a free account on Heroku. Heroku is a host that allows you to git push to it. this easy article goes over the details.. basically you'd have to rename index.html to "home.html", then create an index.php with <?php include_once(“home.html”); ?> + a composer.js file with {} (this will make heroku trigger the simple-php built-stack). From there you can just heroku create 'your-app-name and git push heroku master
  • Install the beaker browser and create a new site project. once they're done they can share their unique hash around.
  • Github pages: https://pages.github.com/

There are a lot of github options up there. The first thing we normally do on our bootcamp at global code after they get their pi and having them personalize the wallpaper of their desktop) is teaching students how to open a terminal, cd & use git & github, because it's just such an essential thing.

Join Scuttlebutt now