Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

up-serve

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

up-serve - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

11

actions/createStaticServer.js

@@ -5,3 +5,5 @@ var fs = require('fs-extra');

var conf = require('../util/nginxConf');
var path = require('path');
var currentPath = path.normalize(process.cwd());
var { EOL } = require('os'); // \n if used on Linux, \r\n if used on Windows.

@@ -23,7 +25,10 @@

)
shell.mkdir('-p', npath.enabledSites()) // Creates directory if doesn't exist
shell.ln('-sf', conf(npath.availableSites(), domain), conf(npath.enabledSites(), domain)) // Symlink the conf file from sites-available to sites-enabled
shell.ln('-sf', ".", npath.webRoot() + domain) // Symlink current directory to nginx's web root
shell.mkdir('-p', npath.enabledSites()); // Creates directory if doesn't exist
shell.rm('-rf', conf(npath.enabledSites(), domain)); // Removes domain from sites-enabled if exists
shell.ln('-sf', conf(npath.availableSites(), domain), conf(npath.enabledSites(), domain)); // Symlink the conf file from sites-available to sites-enabled
shell.rm('-rf', npath.webRoot() + domain); // Removes domain from webroot if exists
shell.mkdir('-p', npath.webRoot()); // Creating the nginx www path if it doesn't exist so symlink doesn't fail
shell.ln('-sf', currentPath, npath.webRoot() + domain); // Symlink current directory to nginx's web root
};
module.exports = createStaticServer;

@@ -18,3 +18,3 @@ #!/usr/bin/env node

// Check for requirements such as OS version and nginx install. Throw and exit if requirements not found. #Roadmap: Add ability to satisfy any possible requirements.
requirements(); // Comment in development and uncomment this line in production. This should check whether the OS is compatible with this version of `up`
// requirements(); // Comment in development and uncomment this line in production. This should check whether the OS is compatible with this version of `up`

@@ -21,0 +21,0 @@ program

{
"name": "up-serve",
"version": "0.1.0",
"version": "0.1.1",
"description": "A cli tool to quickly create and manage nginx server blocks.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -11,3 +11,3 @@ <br /><br /><br /><br /><br />

> Current version: `up v.0.1.0 (Pre-Alpha)`
> Current version: `up v.0.1.1 (Pre-Alpha)`

@@ -26,3 +26,3 @@ > Notes: `up` has landed in pre-alpha! 🎉 Changelog will be added from `up v.0.2.0` [(Alpha/MVP)](Roadmap.md)\

> ⚠️ ❌ You have been warned that `up` is still in development. If you intend to install it for development, follow these instructions:
If you intend to install up for development, follow these instructions:

@@ -39,3 +39,3 @@ `git clone https://github.com/codefeathers/up-serve`

Alternatively, install from npm:
Alternatively, to use `up` on to deploy servers install from npm:

@@ -61,1 +61,11 @@ `npm i -g up-serve`

`up proxy example.com 8081` will create a reverse proxy listening at port 8081.
## Contributors, Collaborators, and Guides
Plenty of people gave their time guiding me and shaping this tool.
I'd like to thank and give credit to [The Devs Community](https://thedevs.network), who are the primary reason this exists.
I'd also personally thank the following amazing people for their valuable support and feedback: **Pouria Ezzati, Thomas Rory Gummerson, Omar Khalil, Martin, GingerPlusPlus, Faizan Akram.**
And the following people for their moral support and listening to my constant bickering: **David (The Humanoid), Иброхеем, Simon 'SitiSchu' Schürrle.**
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc