Ask HN: Web development without internet?
Let me preface this: I'm a noob.
Now: I've only ever developed by coding in eclipse, then uploading files via FTP to a domain. (Then I see the changes just by visiting the domain.)
I now this is probably a shitty way to do this. How should I be doing this? How can I develop even when I don't have internet? (In other words, how can I run/try website code without FTP/internet?)
Please be as detailed and creative as you'd lke.
8 comments
[ 5.2 ms ] story [ 33.9 ms ] threadWindows: %SystemRoot%\system32\drivers\etc\hosts
Set foo.local to 127.0.0.1
this is a tutorial for installing apache on windows: http://httpd.apache.org/docs/2.0/platform/windows.html
hope that helps, martin
If you are willing/able to code in Notepad, all you have to do is save it as .html instead of .txt and it will open as a webpage in your browser, without any internet access. It makes for a cool little sandbox.
Revision control is not technically needed to work, but you'll need it anyway ;) so start using right away
- Set up a local server, possibly a popular one for your technology of choice (keywords: localhost, apache, nginx, etc.) Set up database systems of you choice (mysql, postgresql, sqlite).
- Commit often, push when sure.
- On your remote server, grab code from your repository (clone it) to your working directory. Pull/update changes manually or set a cron job to do it from time to time, so you got your working copy online (better update manually if it's on production).
- Always keep a separate file for your localhost project settings, which you don't commit to the repository (ignore), so everything works fine with your settings locally, but works with another settings on the remote server.
good luck