- Could install a raspberry pi with a fairly easy user and password.
- then create a "Sites" folder in the home directory
sudo apt-get install nginx
- 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 justheroku create 'your-app-name
andgit 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.